[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | FOCUS, from INFORMATION BUILDERS |
|
Moderator: | ZAYIUS::BROUILLETTE |
|
Created: | Thu Feb 19 1987 |
Last Modified: | Mon May 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 615 |
Total number of notes: | 1779 |
581.0. ""IF &LINES EQ 0" question" by PACUK::GARMCS::MCSHANEG (Deceptively Co-Operative) Thu May 12 1994 13:22
Hi,
I have a .fex which uses a loop to produce reports based on an
initial collection of codes. This loop works fine but there are
certain reports that do not fit the criteria and therefore a test
of &LINES equals 0 and I do not want to produce an output file.
A simple IF &LINES EQ 0 THEN GOTO blah apparently only allows
you to exit from the procedure/loop, is there some way I can
continue processing but not create a blank (heading only) report
file and not encounter a -RUN as this closes open files (eg the
file used to -READ from for the loop) ?
-LOOP
TABLE FILE BLAH
SUM X AND Y AND X
BY X NOPRINT
END
-RUN
-IF &LINES EQ 0 GOTO ALLDONE;
-GOTO LOOP
-ALLONE
-QUIT
Ta,
Gary.
T.R | Title | User | Personal Name | Date | Lines
|
---|