Quote: |
I also try using the VERIFY clause w.r.t. to the KSDS but nothing works out. |
Quote: |
Have job a submit job b after it is completed with an iebcopy to internal rdr. I know that a tso job will wait for datasets, maybe you could experiment with that. |
Code: |
Step1) Verify step w.r.t. to the KSDS
Step2) Check the RC from Step1) If RC>4 then a) Delay of 5 b) Verify the KSDS again c) If RC of b) >4 then abend End if |
Code: |
/*REXX*/ cbl_parm = '00000078'x /*wait in hex seconds */ address linkpgm "ilbowat0 cbl_parm" say 'ilbowat0 return code = ' rc return |
Code: |
/* REXX */ /* check a dsname for any GRS enqueue */ TRACE E PARSE UPPER ARG dsn CONNAME = SPACE(CON TIME(S),0) "CONSOLE ACTIVATE NAME("CONNAME")" "CONSPROF UNSOLDISP(NO) SOLDISP(NO) SOLNUM(400)" "CONSOLE SYSCMD(D GRS,RES=(SYSDSN,"dsn")) CART('CONS0001')" GETCODE = GETMSG('CONSMSG1.','SOL','CONS0001',,15) IF GETCODE = 0 THEN do if CONSMSG1.0 > 3 then do DO CNT = 3 TO CONSMSG1.0 SAY CONSMSG1.CNT END END END "CONSOLE DEACTIVATE" RETURN |
Quote: |
And why not take the simple way out and just include a DD statement pointing to the file being renamed with DISP=OLD? |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours