Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copying a member of PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copying a member of PDS
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Tue Aug 16, 2011 2:33 pm    Post subject: Reply to: Copying a member of PDS
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    Post subject:
Reply with quote

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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Aug 16, 2011 3:49 pm    Post subject:
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    Post subject:
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: 1219
Location: Israel

PostPosted: Tue Aug 16, 2011 5:34 pm    Post subject: Reply to: Copying a member of PDS
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

Senior Member


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

PostPosted: Tue Aug 16, 2011 7:26 pm    Post subject:
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    Post subject: Reply to: Copying a member of PDS
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    Post subject:
Reply with quote

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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Aug 17, 2011 11:38 am    Post subject:
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    Post subject:
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    Post subject: Reply to: Copying a member of PDS
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

Site Director


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

PostPosted: Wed Aug 17, 2011 2:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts how to extract the member name ? jackzhang75 CLIST & REXX 1 Wed Feb 17, 2016 9:21 pm
No new posts Check if a member is present in libra... enrico-sorichetti All Other Mainframe Topics 1 Wed Feb 03, 2016 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us