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



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

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

Postby ramkumar1992sp » Mon Mar 27, 2017 10:26 pm

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
ramkumar1992sp
 
Posts: 71
Joined: Sat Jul 23, 2016 8:52 am
Has thanked: 40 times
Been thanked: 0 time

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

Postby Robert Sample » Mon Mar 27, 2017 11:42 pm

Did you miss this quote in the manual you referenced?
A temporary VSAM data set cannot support the RESET option in the ACB.

These users thanked the author Robert Sample for the post:
ramkumar1992sp (Mon Mar 27, 2017 11:57 pm)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby ramkumar1992sp » Mon Mar 27, 2017 11:56 pm

Thank you Robert for pointing that out.But then if its non temporary dataset,how do I make it resuable through JCL ?
ramkumar1992sp
 
Posts: 71
Joined: Sat Jul 23, 2016 8:52 am
Has thanked: 40 times
Been thanked: 0 time

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

Postby Robert Sample » Tue Mar 28, 2017 1:09 am

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.

These users thanked the author Robert Sample for the post:
ramkumar1992sp (Tue Mar 28, 2017 2:09 am)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby ramkumar1992sp » Tue Mar 28, 2017 2:10 am

Thanks Robert!! Using a DATACLAS worked..
ramkumar1992sp
 
Posts: 71
Joined: Sat Jul 23, 2016 8:52 am
Has thanked: 40 times
Been thanked: 0 time

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

Postby Robert Sample » Tue Mar 28, 2017 2:21 am

Glad to hear you got it working.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post