For Programmers: Free Programming Magazines  


Home > Archive > ASM370 > March 2004 > delete datasets with expiration date









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author delete datasets with expiration date
j?rg brehe

2004-03-26, 11:11 pm

I have some question to the scratch macro. MVS OS/390

I shall purge some datasets which are allocated by our programm.
we get these datasets from our customers. they make an ftp transfer
and give all files an expiration date.
Now, some of this datasets will be allocated by our programm.
Normally we use an assembler-UPRO which use the dynalloc macro
" svc 99 with Disp(mod,delete,keep)".
But, if an expiration date is there and the expiration date is not
expired, then we have a problem. We can't delete them in this way.
i get no warning, dammed. After running our programm, i see that bad
dataset is there.
Now i thought, i can ask if this dataset has an expiration date and
then use
the scratch macro. But how can i get the volser if thes dataset is on
more then one volume. Or is there a better way?

I can't delete the expiration date in the vtoc, nor I can link our
programm WITH AN AUTHORIZATION
CODE OF 1 AND PLACED IN AN AUTHORIZED LIBRARY. I only know the right
dataset in the very moment, when i try to delete the file with
dynalloc disp=delete.

Now i will try to read the JFCB.

i need an small example

with best regards

jörg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com