| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| HB0 Beginner
 
 
 Joined: 20 Apr 2005
 Posts: 25
 Topics: 7
 
 
 | 
			
				|  Posted: Mon May 16, 2005 7:15 am    Post subject: GDG with different LRECLs |   |  
				| 
 |  
				| Hello, 
 As far as I know, the GDG versions can have different LRECLs.
 Now, my question is when the GDG base is referred , say we are trying to copy the whole GDG to another GDG, will it throw an error since LRECL's are different or will it truncate the last bytes or the GDG is copied as is.
 How is it done internally? When the base is referred, are the versions referred in the order of the generation number ?
 
 Please clarify.
 
 Thanks,
 HB0.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Mon May 16, 2005 7:39 am    Post subject: |   |  
				| 
 |  
				| HBO, 
 If your GDG versions are of FB format then you cannot copy them to a single dataset as you CANNOT concatenate different LRECL datasets.
 
 If your GDG vesions are of VB format then CAN copy them to a single dataset and the output dataset will have the largest LRECL.
 
 When you refer the GDG base alone then the Versions will be referenced as LIFO (last in first out) i.e the latest generation is read first and the oldest generation is read last.
 
 Hope this helps...
 
 Cheers
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 | 
			
				|  Posted: Mon Aug 01, 2005 1:31 am    Post subject: |   |  
				| 
 |  
				| Hi, 
 How can I concatenate or merge two sequential files of LRECLs 1156 and 603.
 Record Format of both the files is FB.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Mon Aug 01, 2005 7:38 am    Post subject: |   |  
				| 
 |  
				| vkphani, 
 You cannot concatenate 2 different LRECL FB format datasets. You can only concatenate VB files of different Lrecl's. You need to copy them individually and pad the smallest lrecl dataset with either spaces or low-values.
 
 Hope this helps...
 
 Cheers
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SureshKumar Intermediate
 
 
 Joined: 23 Jan 2003
 Posts: 211
 Topics: 21
 
 
 | 
			
				|  Posted: Mon Aug 01, 2005 10:38 am    Post subject: |   |  
				| 
 |  
				| kolusu, I had inadvertently put in a wrong answer earlier, however File-Aid seems to handle this requirement efficiently. I had put in a test case and it works fine as long as the receiving file is large enough. Any thoughts/pitfalls ? Thanks
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Mon Aug 01, 2005 11:30 am    Post subject: |   |  
				| 
 |  
				| Sureshkumar, 
 Thanks for your test. I just ran another test and it was successful. File-aid does Not care if the largest LRECL is first in the concatenation list. If smaller LRECL dataset is first in  the concatenation it simply  truncates the output file and ends with a return code of 4.
 
 Seems like file-aid handles even FB files Similar to VB files.
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |