View previous topic :: View next topic
|
Author |
Message |
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
manuwankenobi
New User
Joined: 02 Mar 2006 Posts: 32 Location: FRANCE
|
|
|
|
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 |
|
|
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
manuwankenobi
New User
Joined: 02 Mar 2006 Posts: 32 Location: FRANCE
|
|
|
|
Yes it will release free space from multi volume datasets
Regards |
|
Back to top |
|
|
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
|