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

What is Z (compress) command does actually?


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

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Oct 01, 2008 11:03 am
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
Anuj Dhawan

Superior Member


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

PostPosted: Wed Oct 01, 2008 11:17 am
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 Dhawan

Superior Member


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

PostPosted: Wed Oct 01, 2008 11:24 am
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
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Oct 01, 2008 11:39 am
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 Dhawan

Superior Member


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

PostPosted: Wed Oct 01, 2008 3:14 pm
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: 1702
Location: Australia

PostPosted: Wed Oct 01, 2008 4:17 pm
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

Moderator Emeritus


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

PostPosted: Wed Oct 01, 2008 8:03 pm
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
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

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

Thanks all for explaining concept so well
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top