Subject: | |
From: | |
Reply To: | Schlosser, Robert (Contractor) |
Date: | Thu, 13 May 1999 15:02:13 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
John
You can accomplish the task of PAUSEing for a file existence by using a
WHILE loop in you JCL. Assume that you are looking for a file called ZETA, and
want to pause until the file exists. The code would be something line this
WHILE (not(FINFO('ZETA','EXISTS'))) DO
PAUSE n
ENDWHILE
The value you use for n will determine the maximum time you job will
wait after the creation of the file. If you want to check for non-existence,
simply remove the NOT portion of the above WHILE statement (don't forget the
parentheses).
Bob Schlosser
Harris Corporation
Melbourne, FL.
(407) 727-5893
-----Original Message-----
From: John Krussel [SMTP:[log in to unmask]]
Sent: Wednesday, May 12, 1999 6:40 PM
To: [log in to unmask]
Subject: Enhancement to Pause
I like the way that you can now PAUSE while either a "job" EXIST's or
NOTEXIST's, would anyone else like it to pause on whether a "file" EXIST's
or does NOTEXIST. This would make a lot of jobs I have a lot more
efficient. And if you could also use Wildcards for the file name would be
great but my guess is that would really complicate things.
John Krussel
Systems Manager
Nordstrom
[log in to unmask]
http://www.nordstrom.com
|
|
|