Page 1 of 1

Giving expiry date for a file getting dynamically allocated

Posted: Tue Mar 02, 2010 9:12 pm
by nagesh divvela
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

Posted: Fri Mar 05, 2010 2:23 pm
by Anuj Dhawan
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...

Posted: Fri Mar 05, 2010 2:25 pm
by Anuj Dhawan
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.

Posted: Fri Mar 05, 2010 3:16 pm
by nagesh divvela
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

Posted: Fri Mar 05, 2010 11:30 pm
by Anuj Dhawan
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.