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

Copying a member of PDS


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

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Tue Aug 16, 2011 2:29 pm
Reply with quote

Hi,

I have one PDS TEST.UNIT.DBRMLIB. When i am using PRINT IDS command for one member of that PDS it is sayng DATASET IN USE for most of the time.

So what i am doing is copying that member to my personal PDS TEST.U0031.DBRMLIB (TESTPGM). After some processing i will read next member of TEST.UNIT.DBRMLIB and replacing same member TESTPGM in
TEST.U0031.DBRMLIB.

But here the problem is even though i am copying and replacing same member, the allocation of space is growing and i am getting SB37 abend for the PDS TEST.U0031.DBRMLIB.

Is anybody have better approach, i need to process TEST.UNIT.DBRMLIB member by member.

Thanks in advance
R KARTHIK
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Aug 16, 2011 2:33 pm
Reply with quote

If you keep putting stuff in, your PDS will keep growing until it runs out of space. When you delete a member, or change a member (when "saved" the member gets an entirely new location) no space is recovered.

If you want to recover the space, have to "compress" the PDS.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 16, 2011 3:07 pm
Reply with quote

or join the 20th century and use PDS-E.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1205
Location: Dublin, Ireland

PostPosted: Tue Aug 16, 2011 3:49 pm
Reply with quote

dbzTHEdinosauer wrote:
or join the 20th century and use PDS-E.


...well, the late part of the 20th century....

Garry
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 16, 2011 4:22 pm
Reply with quote

i was trying to be sarcastic (if you can believe)
since it is now the 21st century (for about a decade)
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Aug 16, 2011 5:34 pm
Reply with quote

Is this a manual process or is it part of a tool ?
Batch or online ?
Is there a particuliar reason for using PRINT ?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Aug 16, 2011 7:26 pm
Reply with quote

Compress it or COPY this PDS to a new-PDSE (TYPE=LIBRARY) and get rid of your old PDS.

PDS and PDSE are two completely different animals. You do not need to compress a PDSE where you do need to compress a PDS, as has been said. The number of directory blocks is fixed within a PDS but dynamic within PDSE.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Aug 17, 2011 10:39 am
Reply with quote

HI all,

I am using it in REXX. I am invoking LMCOMP ISPF service to compress
the dataset after replacing the member. It is working fine and i am not getting space abend.

Thanks for all your suggestions.

Now i understood what happens while compress and also i will try to use PDS-E dataset and see what happens (Space should not grow while replacing same member) without using LMCOMP service.

Thanks
R KARTHIK
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 17, 2011 10:52 am
Reply with quote

you can not compress a pds-e.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1205
Location: Dublin, Ireland

PostPosted: Wed Aug 17, 2011 11:38 am
Reply with quote

Quote:
(Space should not grow while replacing same member)


Space can grow if the member is being replaced by a larger version of itself. icon_rolleyes.gif

Garry.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 17, 2011 11:49 am
Reply with quote

karthikr44,

read about the diffence between PDS and PDS-E here

if you really want to understand, read Partitioned Data Set Extended Usage Guide
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Aug 17, 2011 12:57 pm
Reply with quote

HI,

Thanks Dick Brenholtz for your help. And appreciate Garry for your sense of humor icon_smile.gif .

R KARTHIK
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: Wed Aug 17, 2011 2:30 pm
Reply with quote

Hello,

Why would believe the post from Garry was humor? The post from Garry was not humor - it is a fact. . .

How do you think the system will "replace" a 500-byte member with a 2000-byte member? It will use more space. . .
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 How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Library member auto insert option TSO/ISPF 3
Search our Forums:

Back to Top