Change the LRECL and BLKSIZE of the file.

JES2/3, JCL, utilities.
Post Reply
Mainframe Bear
Registered Member
Posts: 26
Joined: Sat Oct 12, 2013 2:30 am

Change the LRECL and BLKSIZE of the file.

Post by Mainframe Bear »

Hi,

I have a file with LRECL=360 and BLKSIZE=27998. I want to convert it to LRECL=0 and BLKSIZE=27998. Is it possible?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Change the LRECL and BLKSIZE of the file.

Post by enrico-sorichetti »

why would You want to do that ...
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Change the LRECL and BLKSIZE of the file.

Post by nicc »

How would you get a zero-length record? What would you do with it if it was possible?
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Change the LRECL and BLKSIZE of the file.

Post by Robert Sample »

Load libraries are typically defined without an LRECL specified, and they default to LRECL=0, but they do have RECFM=U.

To answer the question, first the RECFM must be U -- if it is not U, you cannot have LRECL less than 1, period (the JCL Reference manual tells you this). Second, assuming you somehow managed to define a data set with RECFM=U and LRECL=360, you will need to create a new data set with RECFM=U and BLKSIZE=27998 (no LRECL) and copy the current data set to the new data set. I'm not sure what the system will do during such a copy -- it may fail in which case you will find out that it is not possible to change the LRECL in the way you want.

Since this topic has nothing to do with Forum Rules, I moved it to the JCL forum.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”