Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Release or Free unused DASD from the Dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Release or Free unused DASD from the Dataset
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jun 13, 2009 11:51 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Release or Free unused DASD from the Dataset
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    Post subject: Reply to: Release or Free unused DASD from the Dataset
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us