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
 

 

Concatenate different LRECL GDG's

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Wed Nov 18, 2015 3:30 am    Post subject: Concatenate different LRECL GDG's
Reply with quote

Is it possible to merge all the generations with different LRECL? I have a GDG which as LRECL=1200 till last month and one of the process takes the GDG base as a input and copy the data of entire generations into one file. Now starting this month the LRECL has increased to 1500 so now it is not possible to achieve the same processing , I tried with INREC OVERLAY to make all old one's to LRECL=1500 but that is not working.
Code:
CE043A 3 INVALID DATA SET ATTRIBUTES: SORTIN   LRECL   - REASON CODE IS 05

Last option is to get old generations changed to LRECL=1500 ( One time job) and then run the new one with LRECL=1500.

Any Advise.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Wed Nov 18, 2015 4:24 am    Post subject: Reply to: Concatenate different LRECL GDG's
Reply with quote

What do you mean by "merge", an actual merge, or copying the datasets one after another?

Presumably old, short-record, generations are dropping off one-at-a-time?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Wed Nov 18, 2015 4:39 am    Post subject:
Reply with quote

Copying datasets one after another. We do retain up to 30 generations.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Wed Nov 18, 2015 5:27 am    Post subject: Reply to: Concatenate different LRECL GDG's
Reply with quote

You have 30 runs then before the problem clears itself.

You could use either MERGE or JOINKEYS to simulate a concatenation, with different fixed-length LRECLs (then you can pad the short records to 1500 bytes) but you would need to change (or generate) the JCL for each run.

The alternative, as you have mentioned, is to modify the old data. However, the work would only be necessary, as in having an impact on the system, for 30 runs.

We can't have sufficient knowledge of your system and how that dataset is used to be able to advise which of those options best suits you.

For instance, it would be possible to create one dataset of converted "old" generations and use that, having renamed the originals. But we can't tell if something like that would be useful to you.

You need to weigh the amount of work against the need during those 30 runs, and go with what seems best in terms of cost, or run-time, or something that we can't know.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu Nov 19, 2015 1:35 am    Post subject:
Reply with quote

Yes, I don't see any other way to achieve it. Thanks Bill.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Thu Nov 19, 2015 2:44 am    Post subject: Reply to: Concatenate different LRECL GDG's
Reply with quote

Although, if you have SAS, I think it can do it without caring.

You could also write a "subsystem" to use for the IO, so you handle it yourself, although for I've never seen anything but vendor-software doing that.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu Nov 19, 2015 2:56 am    Post subject:
Reply with quote

Quote:
Although, if you have SAS, I think it can do it without caring.

Yes we have SAS, but it consumes too much of CPU + Already we have a SORT in place and I trust it is not good to change the way SORT is working now and it wouldn't get any approvals also. However this option is good in case if this doesn't go to production and stay's only in testing regions or to create onetime production report. So thanks.

So as of now we decided to have a onetime job as explained above which looks easy and handy. icon_confused.gif
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 PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts SORT Format should be RECFM=VB,LRECL=350 senthamizh SYNCSORT 8 Fri Jan 15, 2016 8:20 pm
No new posts Concatenate 2 different VB files to a... santhosh5983 DFSORT/ICETOOL 8 Sat Oct 10, 2015 2:12 am
No new posts How to concatenate a dataset with SYS... swathykrishnan CLIST & REXX 8 Tue Sep 01, 2015 6:08 pm
No new posts how to concatenate two cobol loadlib ... boyti ko CLIST & REXX 2 Mon Jun 29, 2015 4:41 pm


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