Subject: | |
From: | |
Reply To: | |
Date: | Thu, 24 Apr 1997 07:34:12 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
James Wilkinson wrote:
<<With MPE/iX you can read an open STDLIST so you just need the job to scan
itself and search for the error.>>
If someone wants to use this technique of a job searching its own $STDLIST
for a particular string, like "*W*" for a PowerHouse warning, there is [at
least] one caveat: the command will always find one occurrence of the
specified string, in the command that mandates the search! One way of
avoiding this would be to have the search in a command file external to the
job itself. MPEX does help solve this problem by offering the variable,
MPEXPRINTLINESFOUND that can be interrogated:
:IF MPEXPRINTLINESFOUND > 1 THEN {not > 0 }
: do something
:ENDIF
Jobs that have to check whether QUIZ found records or not would do better
to check the resulting subfile with MPE/iX FINFO:
:IF FINFO ("subfile","EXISTS") THEN
: IF FINFO ("subfile","EOF) > 0 THEN
: TELLOP IT'S OK
: ELSE
: TELLOP NO RECORDS FOUND
: ENDIF
:ELSE
: TELLOP NO SUBFILE PRODUCED AT ALL
:ENDIF
Leonard Berkowitz
|
|
|