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
 

 

Change LRECL of an existing dataset

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

New User


Joined: 15 Dec 2005
Posts: 3

PostPosted: Tue Oct 17, 2006 12:09 am    Post subject: Change LRECL of an existing dataset
Reply with quote

Hi,

I have a job that runs weekly which takes all the generation of a dataset. I have increased the LRELC of that file. My weekly job is abending now as the generations before my changes have old LRECL and new genrations have new LRECL.

Is there a way to update all the old generations to new LRECL? Please let me know.

I tried simply copy with disp=old and new LRECL and is not working.

Regards
Anil
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Oct 17, 2006 1:36 am    Post subject: Re: Change LRECL of an existing dataset
Reply with quote

A DFSORT step would usually be used. For example, to change the old LRECL of 80 to a new LRECL of 100:

Code:

//SORT    EXEC PGM=ICEMAN
//SORTIN  DD DISP=OLD,DSN=MY.GDG.G0001V00
//SORTOUT DD DISP=(,CATLG,DELETE),DSN=MY.GDG.G0001V01,...
//SYSOUT  DD SYSOUT=*
//SYSIN   DD *
   OPTION COPY
   OUTREC FIELDS=(1:1,80,100:X)
/*
Back to top
View user's profile Send private message
ravindran1185

New User


Joined: 03 Nov 2008
Posts: 7
Location: Chennai

PostPosted: Thu Nov 06, 2008 7:05 pm    Post subject: If change the old LRECL of 80 to a new LRECL of 100?
Reply with quote

If I change the old LRECL of 80 to a new LRECL of 100 ...By default what data will be there in that 20 bytes????
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 06, 2008 7:07 pm    Post subject:
Reply with quote

Using the code supplied by Kevin above, blanks.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Nov 07, 2008 1:00 am    Post subject:
Reply with quote

Hello,

Copying these "old" length files to the new length may cause you more problems than it saves. If the record format was changed throughout the record (i.e. fields made larger, fields inserted before the additional 20 bytes, etc) the "lengthened" files will be useless.

If the record change was to add new data only at the end of the record, the copy might be helpful, but whatever code runs against the "old" data needs to know that the las 20 bytes are not valid data - which may cause errors in processing or may cause 0c7 abends if the code expects numeric values.

I'd suggest you keep/create a copybook for the old format and use that format until the old files are no longer part of the system. It is probably too late, but i'd also suggest creating a new dsn/gdg for the new data format.

Depending on what changes were made to the record layout and how the "old" data is to be used should help deciding which way to proceed.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts WER247A incompatible lrecl Danielle.Filteau SYNCSORT 8 Tue May 02, 2017 4:04 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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