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 

GDG with different LRECLs

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
HB0
Beginner


Joined: 20 Apr 2005
Posts: 25
Topics: 7

PostPosted: Mon May 16, 2005 7:15 am    Post subject: GDG with different LRECLs Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 16, 2005 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Aug 01, 2005 1:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Aug 01, 2005 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Aug 01, 2005 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Aug 01, 2005 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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