Re:
> 55 : IF FINFO ("HOUD1.PUB",0) THEN
> 56 *** EXPRESSION TRUE
> 57 : IF FINFO ("HOUD1.PUB","INTCREATED")=!HPYYYYMMDD THEN
> 70 :
> 71 : ELSEIF FINFO ("HOUD1.PUB",0) THEN
> 72 *** COMMANDS IGNORED UNTIL MATCHING ENDIF
> 73 : IF FINFO ("HOUD1.PUB","INTCREATED")=!HPYYYYMMDD THEN
>
> Why does "IF FINFO ("HOUD1.PUB",0) THEN" prove true on line 55 but false on
> line 71? (the file does exist, by the way)
It isn't "false" on line 71 ... it's being *IGNORED* on line 71.
Why? Because you already took the "true" path (56..70), so the subsequent
ELSE (or, in this case), ELSEIF, is going to be not taken (i.e., ignored)
You really want to change your JCL, because you're saying:
if houd1.pub exists then
else if houd1.pub exists then
...
and, unless you're trying to catch a very small timing hole (where houd1.pub
gets created after the first check and before the second check), you'll
never find the second check succeeding.
Stan Sieler [log in to unmask]
www.allegro.com/sieler/wanted/index.html www.allegro.com/sieler
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|