View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
or join the 20th century and use PDS-E. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
dbzTHEdinosauer wrote: |
or join the 20th century and use PDS-E. |
...well, the late part of the 20th century....
Garry |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
i was trying to be sarcastic (if you can believe)
since it is now the 21st century (for about a decade) |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you can not compress a pds-e. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Quote: |
(Space should not grow while replacing same member) |
Space can grow if the member is being replaced by a larger version of itself.
Garry. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI,
Thanks Dick Brenholtz for your help. And appreciate Garry for your sense of humor .
R KARTHIK |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|