Re: Deleting UnExpired dataset using JCL



On Tue, 24 Feb 2009 15:57:05 +0000, Ted MacNEIL <eamacneil@xxxxxxxx> wrote:

I know about IDCAMS, but the user wants a pure JCL solution.

Then the user is out of luck.
The best that can happen is there's a WTOR, to ask if it's okay.
And, I believe that's only if there is write activity to the dataset.
I don't recall what happens with a delete.

-

Depends on the definition of "pure JCL". The following should work:

//STEP1 EXEC PGM=IKJEFT1A,
// PARM='DEL ''dsn'' PURGE'
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//*

--
John

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.



Relevant Pages

  • RES: WTO Sample Program
    ... PLACES THEM IN A WTOR AFTER THE PHRASE 'REPLY Y OR N' TO MAKE ... LUEBCKE 4/28/83 COND CODE SET BY WTOR RESPONSE' ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: JES Control Blocks
    ... exits that the books might be okay, ... with 1.7 are okay, but some of the code that these sites were ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Deleting UnExpired dataset using JCL
    ... The best that can happen is there's a WTOR, to ask if it's okay. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Deleting UnExpired dataset using JCL
    ... The best that can happen is there's a WTOR, to ask if it's okay. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: S.O.S. - VTOC INDEX DISABLED.
    ... Please let me know if it is okay. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)