HP3000-L Archives

February 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Thu, 28 Feb 2002 15:56:20 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
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 *

ATOM RSS1 RSS2