Page 1 of 1

create a tempoarary VSAM dataset with REUSE(Y) parm thru JCL

PostPosted: Mon Mar 27, 2017 10:26 pm
by ramkumar1992sp
I need to create a tempoarary VSAM dataset with REUSE(Y) parm and I'm creating my dataset through a JCL not using IDCAMS.

I was referring the below document.

https://www.ibm.com/support/knowledgece ... /d4212.htm

Below is how I allocate my temporary dataset.

//WORK     DD DSN=&&WORK,DISP=(,DELETE),                    
//            RECORG=KS,LRECL=3602,KEYLEN=2,
//            UNIT=SYSDA,SPACE=(CYL,(15,15))                
 


Can someone please tell me how I can make this temporary dataset resuable ?


Thanks

Re: create a tempoarary VSAM dataset with REUSE(Y) parm thru

PostPosted: Mon Mar 27, 2017 11:42 pm
by Robert Sample
Did you miss this quote in the manual you referenced?
A temporary VSAM data set cannot support the RESET option in the ACB.

Re: create a tempoarary VSAM dataset with REUSE(Y) parm thru

PostPosted: Mon Mar 27, 2017 11:56 pm
by ramkumar1992sp
Thank you Robert for pointing that out.But then if its non temporary dataset,how do I make it resuable through JCL ?

Re: create a tempoarary VSAM dataset with REUSE(Y) parm thru

PostPosted: Tue Mar 28, 2017 1:09 am
by Robert Sample
JCL definition of a VSAM data set does not replace IDCAMS -- at least not at this time. The DFSMS Using Data Sets manual for z/OS 2.2 lists the JCL keywords that can be used in defining a VSAM data set, and none of them relates to REUSE. If you use a DATACLASS, you can specify REUSE in the DATACLASS but you can't directly in the defining JCL reference REUSE.

Re: create a tempoarary VSAM dataset with REUSE(Y) parm thru

PostPosted: Tue Mar 28, 2017 2:10 am
by ramkumar1992sp
Thanks Robert!! Using a DATACLAS worked..

Re: create a tempoarary VSAM dataset with REUSE(Y) parm thru

PostPosted: Tue Mar 28, 2017 2:21 am
by Robert Sample
Glad to hear you got it working.