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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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