MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Releasing Unused space allocation on a VSAM file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
HP_Steve
Beginner


Joined: 09 Jul 2008
Posts: 6
Topics: 3

PostPosted: Thu Aug 05, 2010 12:21 pm    Post subject: Releasing Unused space allocation on a VSAM file Reply with quote

Can anyone tell me, does the RLSE parm work on a VSAM file allocated in a JCL?

So, when I use RLSE on a flat sequential dataset, like this:-

Code:
//APPREP1  DD DSN=QA.TEST.CR13683.TC1.APPREP1,
//         DISP=(NEW,CATLG,DELETE),           
//         DCB=(LRECL=32756,BLKSIZE=32760,   
//         RECFM=VB,DSORG=PS),               
//         SPACE=(CYL,(10,1),RLSE),AVGREC=U 


Unused space is released as I expect in the resulting dataset:-

Code:
Current Allocation       
 Allocated cylinders : 1
 Allocated extents . : 1


If I try doing the same with an ES file, allocated like this:-

Code:
//CACHE1   DD DSN=QA.TEST.CR13683.TC1.CACHE1, 
//         DISP=(NEW,CATLG,DELETE),RECORG=ES, 
//         DCB=(LRECL=32756,BLKSIZE=32760),   
//         SPACE=(CYL,(10,1),RLSE),AVGREC=U   


Selecting the .DATA portion of the file afterwards in 3.4 still shows the full allocation:-

Code:
Current Allocation       
 Allocated cylinders : 10
 Allocated extents . : 1 


So it kind of looks like RLSE does nothing on a VSAM file??

If that's true is there some other way to achieve this? (I don't klnow how many records will be writtent to the file up front, so I have to allocate it large enough to accept the maximum I expect).

Thanks!
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Aug 05, 2010 12:26 pm    Post subject: Reply with quote

VSAM Demystified
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Aug 06, 2010 1:19 am    Post subject: Reply with quote

NO, it does not, however by using extended facilities VSAM and allocating the correct MGMTCLAS - something that your storage management gurus should do - you can easily release unused VSAM allocations.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
HP_Steve
Beginner


Joined: 09 Jul 2008
Posts: 6
Topics: 3

PostPosted: Fri Aug 06, 2010 12:24 pm    Post subject: Reply with quote

Thanks, I will look in to extended VSAM.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group