IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Change 80 LRECL data to 250 LRECL data


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts VB to FB - Finding LRECL SYNCSORT 4
Search our Forums:

Back to Top