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?
Change the LRECL and BLKSIZE of the file.
-
- Registered Member
- Posts: 26
- Joined: Sat Oct 12, 2013 2:30 am
- enrico-sorichetti
- Global Moderator
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Change the LRECL and BLKSIZE of the file.
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
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

Re: Change the LRECL and BLKSIZE of the file.
How would you get a zero-length record? What would you do with it if it was possible?
Regards
Nic
Nic
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Change the LRECL and BLKSIZE of the file.
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.
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.
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