Giving the expiry date also as a parameter while allocating

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
nagesh divvela
Member
Posts: 16
Joined: Sun Dec 27, 2009 12:37 pm

Giving the expiry date also as a parameter while allocating

Post by nagesh divvela » Tue Mar 02, 2010 9:47 pm

Hi all,

Can some one suggest me how to give the expiry date in the DCB parameters which we give for a dataset creation in the JCL.

I need to give the expiry date while allocating the dataset, so like giving the LRECL how to give the expiry date ?

Regards,
Nagesh D

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Tue Mar 02, 2010 10:48 pm

I believe you can use the EXPDT keyword for that.

//ddname DD EXPDT=yyddd,...
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Mar 05, 2010 2:33 pm

You've other thread also on this, what happened - did you lost the track of that thread?
Regards,
Anuj

nagesh divvela
Member
Posts: 16
Joined: Sun Dec 27, 2009 12:37 pm

Post by nagesh divvela » Fri Mar 05, 2010 3:22 pm

Hi Anuj,

In the other thread I was searching for the COBOL utility, Here under the JCL section I just requested for the parameter which we give in the JCL.

@ Frank, thanks for the reply. It was the thing which I was actually looking for.

Regards,
Nagesh

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Mar 05, 2010 11:20 pm

Fine. What Frank has told you is correct. However, it should be noted if your shop is SMS managed and ACS routine are correctly tailored-- any date on EXPDT might not be regarded because of the rules defined under MGMTCLAS usually govern the DSN expiration etc.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others