Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Change 80 LRECL data to 250 LRECL data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Fri Jun 13, 2008 8:53 am    Post subject: Change 80 LRECL data to 250 LRECL data
Reply with quote

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
View user's profile Send private message

Varun Singh

New User


Joined: 01 Aug 2007
Posts: 25
Location: Delhi

PostPosted: Fri Jun 13, 2008 9:17 am    Post subject: Reply to: Change 80 LRECL data to 250 LRECL data
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Jun 13, 2008 6:33 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Mon Jun 16, 2008 6:45 am    Post subject:
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Jun 16, 2008 7:03 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts WER247A incompatible lrecl Danielle.Filteau SYNCSORT 8 Tue May 02, 2017 4:04 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us