|
|
| Author |
Message |
rammraju
Active User
Joined: 05 Mar 2005 Posts: 63 Location: Hyderabad
|
|
|
|
Hi,
We were doing a FTP from unix to mainframe. I accidentally gave a wrong LRECL (80) for the destination MVS dataset, where as it should be giving LRECL 250. Now I dont have access to unix server, only what I have is a file with LRECL 80, Can I copy this file to another file with LRECL 250.
In other words, Instead of each record having 80 characters now it should have 250 characters. Is it possible
Thanks |
|
| Back to top |
|
 |
References
|
Posted: Fri Jun 13, 2008 8:53 am Post subject: Re: Change 80 LRECL data to 250 LRECL data |
 |
|
|
 |
Varun Singh
New User
Joined: 01 Aug 2007 Posts: 25 Location: Delhi
|
|
|
|
Hi ram,
Perhaps what I suggest you is that again you need to download it from Unix server because it may happen that data in records got truncated as you had just given LRECL as 80 which should be 250 as you said
So if you just want to change the dataset LRECL that's possible
Simply you need to copy all the data from file(LRECL=80) to file(LRECL=250).....But, I don't know weather that is going to fulfill your requirements.... |
|
| Back to top |
|
 |
Bill Dennis
Active User
Joined: 17 Aug 2007 Posts: 242 Location: Iowa, USA
|
|
|
|
| Are the 250 byte records split across multiple 80 byte records? Do you want to piece them together or simply pad blanks out to 250 bytes? |
|
| Back to top |
|
 |
rammraju
Active User
Joined: 05 Mar 2005 Posts: 63 Location: Hyderabad
|
|
|
|
| Yes all the 250 bytes are split across multiple 80 byte records. Now I want to piece them together, I dont want to pad blanks or anything out to 250 bytes |
|
| Back to top |
|
 |
Bill Dennis
Active User
Joined: 17 Aug 2007 Posts: 242 Location: Iowa, USA
|
|
|
|
| First copy the file to a new file as RECFM=FB,LRECL=80,BLKSIZE=4000. Now read that file into another copy but specify the INPUT and OUTPUT DCB as RECFM=FB,LRECL=250,BLKSIZE=4000. now you have 250 bytes records. |
|
| Back to top |
|
 |
|
|