Giving expiry date for a file getting dynamically allocated

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

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

Giving expiry date for a file getting dynamically allocated

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

Hello all,

We have REXX tool/subroutine DSUDYNA, which uses a DTG with file name and DCB parameters for dynamically allocating a file.

My requirement is that it has to be allocated with certain expiry date.

In the DCB parameters given in the DTG, the expiry date parameter is not there.

So, is there any way to give expiry date for the file getting allocated later on even, or if some one is familiar with this DSUDYNA can also suggest me if I can give expiry date while it is getting allocated.

Regards,
Nagesh D

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:23 pm

DSUDYNA is a utility specific to your shop, we can't tell what exactly it does.

What is DTG?

Do you have the liberty to choose MGMTCLAS by your own, that can be one place to look for...
Regards,
Anuj

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:25 pm

And apart from that, do you really want to use the above said utility to allocate the file of your choice, there are many other standard methods around if just the file allocation is your question.
Regards,
Anuj

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

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

Hi Anuj,

It is actually using the utility DSUDYNA which I mentioned, If you can suggest any other utility where we can dynamically allocate a file giving the retention period/ expiry date is even fine. Thanks for the update,
Please let me know the other Utilities where I can get this requirement done.

Thanks,
Nagesh D

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:30 pm

Hi Nagesh,

Like I said earlier, DSUDYNA is specific to your shop. I, for one, can't help you much on that, you must get in touch with someone at your shop who has used it or you may look in some existing program which uses this utility.

If this is to be done using COBOL (as you said in other thread, for what this thread is here) You can use (CALL) bpxwdyn in your COBOL program to allocate a file.

You could use PUTENV also, but I'd prefer BPXWDYN.
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