| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| ace Beginner
 
 
 Joined: 24 Feb 2004
 Posts: 58
 Topics: 23
 
 
 | 
			
				|  Posted: Fri Mar 11, 2005 10:06 am    Post subject: Concatenate Different LRECL |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Fri Mar 11, 2005 10:39 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| ace Beginner
 
 
 Joined: 24 Feb 2004
 Posts: 58
 Topics: 23
 
 
 | 
			
				|  Posted: Fri Mar 11, 2005 11:03 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| superk Advanced
 
  
 Joined: 19 Dec 2002
 Posts: 684
 Topics: 5
 
 
 | 
			
				|  Posted: Fri Mar 11, 2005 11:57 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| ace Beginner
 
 
 Joined: 24 Feb 2004
 Posts: 58
 Topics: 23
 
 
 | 
			
				|  Posted: Fri Mar 11, 2005 2:47 pm    Post subject: |   |  
				| 
 |  
				| Thank you for the tips Superk. Let me try out with PKZIP. _________________
 Thank You
 -Ace
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |