On Thu, 8 Apr 2010 17:50:44 -0400, Scott Rowe wrote:

>Oops, c /I/it/
>
>>>> Scott Rowe 4/8/2010 5:48 PM >>>
>No, Ted, I won't:
>
>DELETE 'SROWE1.TEST'                                             
>IKJ56225I DATA SET SROWE1.TEST ALREADY IN USE, TRY LATER          
>IKJ56225I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER            
>IDC0551I ** ENTRY SROWE1.TEST NOT DELETED                         
>IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8         
>                                                                  
>IF MAXCC<9 THEN SET MAXCC=0                                      
>                                                                  
>IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0 
>
>>>> Ted MacNEIL <[email protected]> 4/8/2010 5:23 PM >>>
>>In simple words IDCAMS 
>will not delete the datasets and let you proceed subsequent steps.
>
Ah, yes.  But Ted cleverly deleted the two lines in which
R.S. clearly stated the condition under which the IDCAMS
approach fails.  So Scott's example doesn't count.

End the job with:

    //ENQ      EXEC  PGM=IEFBR14,COND=(0,LE)
    //EXCL      DD   DISP=MOD,DSN=SROWE1.TEST,...

... and all will be well.  It's likely (WAG) that the OP's
JCL already contains a step that accomplishes this.

-- gil

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

Reply via email to