View previous topic :: View next topic
|
Author |
Message |
Meenakshi Selvaraj
New User
Joined: 30 Oct 2009 Posts: 36 Location: Chennai
|
|
|
|
Hi,
I have 10 members in one PDS. It has record length of 80. I want to change the record length of only one member of that PDS say from 80 to 200. Kindly let me know using which utility we can acheive this.
If this is a flat file, using IEBGENER, IDCAMS we can do this. But i want to change only one member in that PDS.
Thanks! |
|
Back to top |
|
|
bodatrinadh
Active User
Joined: 05 Jan 2007 Posts: 101 Location: chennai (India)
|
|
|
|
Hi Meenakshi,
Its not possible to increase the record length for a particular member(s) in PDS once the LRECL is defined.
Alternate/Only option is create a PDS with LRECL=200
Thanks
-3nadh |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
ALL of the members in one pds need to be the same length. |
|
Back to top |
|
|
Meenakshi Selvaraj
New User
Joined: 30 Oct 2009 Posts: 36 Location: Chennai
|
|
|
|
Thanks All. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Is this a serious question from a senior software engineer? I hope the TS is not working at a nuclear plant. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
unfortunately too many times
the questions asked throw very dark shadows on the reliability of the occupation/skills of the TS |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
Just to pile on a bit - LRECL is a dataset attribute, and PDS members are not datasets. |
|
Back to top |
|
|
Dale Robertson
New User
Joined: 21 Jun 2013 Posts: 44 Location: U.S.A.
|
|
|
|
Meenakshi Selvaraj,
There is something you can do however you must then rebuild your PDS to a new library then create that new member.
Merely allocate your new PDS with RECFM=VB along with something like LRECL=256. Copy the old library to the new one and all will be as it was and the new member can be up to 252 bytes. I do it sometimes with SAS code.
r
"Some days peanuts. Some days shells."
--Wise old submariner saying. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
There is something you can do however you must then rebuild your PDS to a new library then create that new member. |
If a new length is needed for "one" member, changing the length/recfm of the PDS may cause Many abends . . .
Possibly i misunderstand. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
dick scherrer wrote: |
Hello,
Quote: |
There is something you can do however you must then rebuild your PDS to a new library then create that new member. |
If a new length is needed for "one" member, changing the length/recfm of the PDS may cause Many abends . . .
Possibly i misunderstand. |
Perhaps this is a case of "Kill Edward not to fear is good" |
|
Back to top |
|
|
Dale Robertson
New User
Joined: 21 Jun 2013 Posts: 44 Location: U.S.A.
|
|
|
|
dick,
>>If a new length is needed for "one" member, changing the length/recfm of the PDS may cause Many abends . . .
Just once.
>>Possibly i misunderstand.
I think we're talking at cross purposes. Meenakshi claims to need a different LRECL for one member of a PDS with a different LRECL. By merely rebuilding it with a varible blocked PDS then I think his problem will be solved.
Try it. It works. Trust me.
Personally I believe his premise is shaky however this will work. Also of course it depends on the contents of the members. I have a feeling he really needs to have 2 distinct types of libraries.
r
"Trust me Marian."
--Indiana Jones [Harrison Ford] - The Raiders of the Lost Ark |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Why not create a second pds with lrecl=200?
Move those members there.
Nice and neat: PDS.LRECL80 and PDS.LRECL200
No question about what is what and what is where.
That would be my solution. |
|
Back to top |
|
|
Dale Robertson
New User
Joined: 21 Jun 2013 Posts: 44 Location: U.S.A.
|
|
|
|
dave,
>>Why not create a second pds with lrecl=200?
It's just one member that he seems to need however by rights programmers do need multiple libraries because those members have different functions - JCL, high-level program code, utilities, load libraries and control cards.
Personally I think he indeed needs a new library or seemingly a sequential file as LRECL=200 seems odd.
r
"Do you believe in magic?"
--John Sebastian |
|
Back to top |
|
|
|