Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Query regarding compressing a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
varunraisharma

New User


Joined: 01 Sep 2005
Posts: 15
Location: Bangalore

PostPosted: Fri Dec 23, 2005 1:28 pm    Post subject: Query regarding compressing a PDS
Reply with quote

How many times can we compress a PDS, is there any limit on that.
I got 0E37 abend due to shortage of space and i compressed my PDS using command Z and started working again, I have done this 3 times...
is there any limit on the no. of times we can compress and is there any impact on the members in the PDS.

Regards
Varun
Back to top
View user's profile Send private message

Gautam512

Active User


Joined: 05 Oct 2005
Posts: 309
Location: Vizag / US

PostPosted: Fri Dec 23, 2005 4:36 pm    Post subject: Re: Query regarding compressing a PDS
Reply with quote

While creating a dataset make sure u have given enough size for it.When it is short of space that abend is evolved.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Fri Dec 23, 2005 5:21 pm    Post subject: Compress
Reply with quote

Hi frnd,
I think it depends upon the Secondary Space that u have allocated.. i m not clear with that.. let me know if any
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Fri Dec 23, 2005 6:22 pm    Post subject:
Reply with quote

Compressing a dataset rearranges the data and makes larger blocks of free memory available. Number of time we can compress PDS depends upon the number of secondary blocks defined while creation.

Correct me if wrong.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Dec 24, 2005 10:31 pm    Post subject:
Reply with quote

When a PDS member is deleted or updated, an empty space is created where the member existed. Over time as members are deleted (and recreated) these empty spaces multiply until there is not enough contiguous space available in the PDS to satisfy the space required by the newly requested member.

Running compress rearranges the members so that they reside side-by-side and those little spaces are eliminated and become one contiguous free space at the end of the PDS.

If compress doesn't create enough contig space, you may get get an abend on the next creation or update of a member.
Back to top
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Tue Dec 27, 2005 2:46 pm    Post subject:
Reply with quote

Hi mmwife,
Thanks for your explaination, do you mean that there is no limit to the times suppressing the PDS until the remain spaces can't afford the size of the newly created member ?

Pls correct if I am wrong. Thanks. icon_surprised.gif
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Tue Dec 27, 2005 6:11 pm    Post subject: Re: Query regarding compressing a PDS
Reply with quote

HI Brian's_song

Yes you are right. We can reorg PDS any number of times.

Regards
Rupesh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Dec 28, 2005 4:58 am    Post subject:
Reply with quote

To put ie another way, Rupesh, there will come a time when after you compress the PDS there are only 2 tracks remaining uuused.

If your new member will occupy 2 tracks or 1, things will look rosey. On the other hand if itneeds 3 or more, it's Sx37 time.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Dec 28, 2005 11:56 am    Post subject: Re: Query regarding compressing a PDS
Reply with quote

Hi mmwife,

Yes I also agree with you, My view is, if there is space to compress then onlyu we can compress it any times, but if there is no space then how we can compress which you already mention in your last post.

Quote:
in the PDS to satisfy the space required by the newly requested member


Regards
Rupesh
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us