MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Concatenate Different LRECL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ace
Beginner


Joined: 24 Feb 2004
Posts: 58
Topics: 23

PostPosted: Fri Mar 11, 2005 10:06 am    Post subject: Concatenate Different LRECL Reply with quote

Hi All
I have about 20 files (FB) of different LRECL. I need to concatenate all these files into a single file and sort them on a key. I know using SORT we can pad spaces to each file and make them of same LRECL. But just wondering is there any other utility/method that will accept all these 20 files as input and produce a concatenated output file ?
Quote:


Something like this...

//SYSUT1 DD DSN=FILE1,DISP=SHR
// DD DSN=FILE2,DISP=SHR
// DD DSN=FILE3,DISP=SHR
//...........................
//...........................
//............................
//SYSUT2 DD DSN=MY.CONCAT.FILE,DISP=(,CATLG,DELETE),




_________________
Thank You
-Ace
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Fri Mar 11, 2005 10:39 am    Post subject: Reply with quote

Ace,

As far as I know you cannot concatenate different LRECL files of FB recfm. So you need to copy individual files to largest lrecl file by padding with spaces or low-values.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ace
Beginner


Joined: 24 Feb 2004
Posts: 58
Topics: 23

PostPosted: Fri Mar 11, 2005 11:03 am    Post subject: Reply with quote

Thanks Kolusu. Just a thought..Is there any tools availabale in CBT tape? I gave a search in CBT but could not find a hit
_________________
Thank You
-Ace
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Mar 11, 2005 11:57 am    Post subject: Reply with quote

Here are some (off-the-wall) thoughts:

1. PKZIP. Zip all 20 datasets into a single .zip archive. Then, Unzip the archive to a pre-determined dataset with the appropriate LRECL (and DISP=MOD, of course). The shorter-length datasets should pad out.

2. FTP. Similar to above. GET each of the datasets to a single pre-determined dataset (again with DISP=MOD) and, as above, the shorter-length datasets should pad out; or, MPUT all 20 datasets to another server (such as Windows or Unix), and then APPEND the 20 files from the other server back into a single pre-allocated dataset.
Back to top
View user's profile Send private message
ace
Beginner


Joined: 24 Feb 2004
Posts: 58
Topics: 23

PostPosted: Fri Mar 11, 2005 2:47 pm    Post subject: Reply with quote

Thank you for the tips Superk. Let me try out with PKZIP.
_________________
Thank You
-Ace
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group