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

Release or Free unused DASD from the Dataset


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

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Sat Jun 13, 2009 3:29 am
Reply with quote

Hi,

A GDG file is created in a SAS step as shown below.

Code:

//WMBLMSG  DD  DSN=KHELWH.WH63320A(+1),DISP=(,CATLG,DELETE),
//             UNIT=PRD,SPACE=(167,(10,3),RLSE),VOL=(,,,10),
//             RECFM=FB,LRECL=167,DSORG=PS,AVGREC=M 


In spite of using RLSE in SPACE parameter, the file is overallocated by 200%, may be because SAS step does not release the unused DASD.

How can I write a step at the end of the job which will Release the used DASD space allocated to this dataset?

Thank you
-Manohar
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jun 13, 2009 11:51 am
Reply with quote

Does RLSE work with all other types of dataset , and is the dataset used again in a following step / job as output.
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Sat Jun 13, 2009 7:47 pm
Reply with quote

Yes. RLSE works if the step is not executing SAS program.

This dataset is used as a input in the subsequent step in the same job. However it is not used outside this job.

Please let me know if any additional information should be provided.

Thank you
-Manohar
Back to top
View user's profile Send private message
manuwankenobi

New User


Joined: 02 Mar 2006
Posts: 32
Location: FRANCE

PostPosted: Fri Jul 03, 2009 7:09 pm
Reply with quote

Hi,

The code below should give the desired result :

Code:

//RELEASE EXEC PGM=ADRDSSU             
//SYSPRINT DD  SYSOUT=*                 
//SYSIN    DD  *                       
 REL  INCLUDE(                        -
              KHELWH.WH63320A(0) -
             )                         


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

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Fri Jul 03, 2009 8:08 pm
Reply with quote

Thank you for providing the program to release the space.

Does this program release the space even from the multi volume dataset?

Thank you
-Regards
Back to top
View user's profile Send private message
manuwankenobi

New User


Joined: 02 Mar 2006
Posts: 32
Location: FRANCE

PostPosted: Fri Jul 03, 2009 9:51 pm
Reply with quote

Yes it will release free space from multi volume datasets

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

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Sat Jul 11, 2009 2:46 am
Reply with quote

Hi,

Thank you for the clarification.

It did work for multivolume datasets. However it consider only first volume for releasing the space.

Also I noticed following points while trying this utility in three differenent scenario -

-Test #1: if the input files have data, then the utility worked fine.

-Test #2: if the input files are mixed between having data and empty, then the utility only worked on files with data and no action on empty ones.

-Test #3: if the input files are empty, then the utility failed.

Are you aware of some trick to make it work with empty files as well?

Thanks
-Manohar
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top