IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to increase the LRECL of existing member?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Meenakshi Selvaraj

New User


Joined: 30 Oct 2009
Posts: 36
Location: Chennai

PostPosted: Fri Feb 22, 2013 10:40 am
Reply with quote

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
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Fri Feb 22, 2013 11:23 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Feb 22, 2013 11:32 am
Reply with quote

Hello,

ALL of the members in one pds need to be the same length.
Back to top
View user's profile Send private message
Meenakshi Selvaraj

New User


Joined: 30 Oct 2009
Posts: 36
Location: Chennai

PostPosted: Fri Feb 22, 2013 11:34 am
Reply with quote

Thanks All.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Feb 22, 2013 1:47 pm
Reply with quote

Is this a serious question from a senior software engineer? I hope the TS is not working at a nuclear plant.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Feb 22, 2013 1:52 pm
Reply with quote

unfortunately too many times
the questions asked throw very dark shadows on the reliability of the occupation/skills of the TS
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1050
Location: Richmond, Virginia

PostPosted: Sat Feb 23, 2013 11:03 pm
Reply with quote

Just to pile on a bit - LRECL is a dataset attribute, and PDS members are not datasets.
Back to top
View user's profile Send private message
Dale Robertson

New User


Joined: 21 Jun 2013
Posts: 44
Location: U.S.A.

PostPosted: Tue Jun 25, 2013 7:51 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Jun 25, 2013 8:14 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue Jun 25, 2013 8:24 pm
Reply with quote

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" icon_biggrin.gif
Back to top
View user's profile Send private message
Dale Robertson

New User


Joined: 21 Jun 2013
Posts: 44
Location: U.S.A.

PostPosted: Tue Jun 25, 2013 8:28 pm
Reply with quote

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
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Tue Jun 25, 2013 8:31 pm
Reply with quote

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
View user's profile Send private message
Dale Robertson

New User


Joined: 21 Jun 2013
Posts: 44
Location: U.S.A.

PostPosted: Tue Jun 25, 2013 8:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts OpenPGP Decryption job getting LRECL ... IBM Tools 7
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
Search our Forums:

Back to Top