Page 1 of 1

Change the LRECL and BLKSIZE of the file.

Posted: Thu Apr 26, 2018 8:29 pm
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?

Re: Change the LRECL and BLKSIZE of the file.

Posted: Thu Apr 26, 2018 8:33 pm
by enrico-sorichetti
why would You want to do that ...

Re: Change the LRECL and BLKSIZE of the file.

Posted: Fri Apr 27, 2018 2:02 am
by nicc
How would you get a zero-length record? What would you do with it if it was possible?

Re: Change the LRECL and BLKSIZE of the file.

Posted: Fri Apr 27, 2018 2:15 am
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.