> Cobe Xu Wrote
> 
> We have a job to issue HDEL from ML1(as below). However, when the last
> dataset is not found, the step will get rc=14.
> Then I tried to put TSO command 'TIME' in the last line, but still get
> rc=14
> (when the second last HDEL dataset is not in ML1 or not found).
> But put HQUERY in the last line can avoid rc14. Only the same kind of
> command can override previous fail command's rc14?
> Can anyone shed some light on this? Thanks...
> 
> //STEP01   EXEC PGM=IKJEFT01
> //SYSTSPRT DD  SYSOUT=*
> //SYSTSIN  DD  *
>  HDEL A.B.C
>  HDEL A.B.D
>  ......
> 

I am not sure this behavior of an RC14, which is returned when an HDEL is
issued against a dataset that does not exist, can be changed.

But what I might do is create a sequential file with the datasets to be
HDEL'd
Then I would use a REXX to 

1)  Verify the dataset exists Then issue the HDEL
  1a)  That it exists on ML1 Then issue the HDEL
2)  If the dataset does not exist Then bypass the dataset
  

I would issue the HDEL for every dataset that match condition(s) 1 (1a)

Of course I would wonder why you need to manually delete HSM L1 datasets
rather than letting DFSMShsm handle that for you 


Lizette

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

Reply via email to