Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What is Z (compress) command does actually?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
Sambhaji
Warnings : 1

Active User


Joined: 16 Feb 2007
Posts: 267
Location: Pune, India

PostPosted: Wed Oct 01, 2008 11:03 am    Post subject: What is Z (compress) command does actually?
Reply with quote

Often while copying member in the pds if i get X37 (space error)
If i issue Z command for PDS and tried copying member it works.
What does compress comand does actually?
does it zip the file or or rearranges file data blocks to make unusable free space available? Or anything else icon_confused.gif icon_confused.gif icon_confused.gif icon_question.gif
Back to top
View user's profile Send private message
References
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2222
Location: Phoenix, AZ

PostPosted: Wed Oct 01, 2008 11:17 am    Post subject:
Reply with quote

To reclaim the unused and unavailable space in a partitioned data set that results from deleting or modifying members by moving all unused space to the end of the data set.
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2222
Location: Phoenix, AZ

PostPosted: Wed Oct 01, 2008 11:24 am    Post subject:
Reply with quote

If it's your persoanl PDS, try using PDSE to overcome X37.

BTW, in X37 ..X stands for ?
Back to top
View user's profile Send private message
Moved: Wed Oct 01, 2008 11:37 am by superk From Other Mainframe Topics to SMS & VSAM
Sambhaji
Warnings : 1

Active User


Joined: 16 Feb 2007
Posts: 267
Location: Pune, India

PostPosted: Wed Oct 01, 2008 11:39 am    Post subject:
Reply with quote

Quote:

To reclaim the unused and unavailable space in a partitioned data set that results from deleting or modifying members by moving all unused space to the end of the data set.


Thanks for this info. But do you mean to say that if we keep on adding members in PDS (with out deleting or modifying existing members in it)
compress wont have any effect?




Quote:
BTW, in X37 ..X stands for ?

I ment here B37 or D37.
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2222
Location: Phoenix, AZ

PostPosted: Wed Oct 01, 2008 3:14 pm    Post subject:
Reply with quote

I didn't realize that above said can be an inference of my previous explanation. No I don't mean this
Quote:
if we keep on adding members in PDS (with out deleting or modifying existing members in it)
compress wont have any effect?
This may be true if all the 16 extents for that PDS are exhausted fully..
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 663

PostPosted: Wed Oct 01, 2008 4:17 pm    Post subject:
Reply with quote

Hi,

Quote:
Thanks for this info. But do you mean to say that if we keep on adding members in PDS (with out deleting or modifying existing members in it)
compress wont have any effect?


If the above occurs then there is no space to be reclaimded.


Gerry
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8729
Location: 221 B Baker St

PostPosted: Wed Oct 01, 2008 8:03 pm    Post subject:
Reply with quote

Hello,

Quote:
if we keep on adding members in PDS (with out deleting or modifying existing members in it)
compress wont have any effect?
Compress removes "dead" space when members are replaced. If you only add new membersm there will be no "dead" space. When you replace a member with "save" in the editor for example, a new member is written and the old space for the member is left stranded. A compress removes all of this dead space, moves the existing members "up" and leaves all of the available free space "at the bottom".

FWIW - a standard pds with only 1 member may be "full" because the member has been replaced so many times that all of the free space has been used.

Quote:
BTW, in X37 ..X stands for ?
While they have different specifics the x37 abends are space related. Saying x37 is just another way of saying space abend.

FWIW - There are some systems that run a product called StopX37 that intercepts these abends and prevents many production jobs from abending.
Back to top
View user's profile Send private message
Sambhaji
Warnings : 1

Active User


Joined: 16 Feb 2007
Posts: 267
Location: Pune, India

PostPosted: Thu Oct 02, 2008 4:16 pm    Post subject:
Reply with quote

Thanks all for explaining concept so well
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1