Posted by Robert G Laurin on December 27, 2021 at 13:17:54:
In Reply to: EXEPASS posted by bruce on December 22, 2021 at 18:07:57:
The ".if EXEPASS" is usually used inside usefiles when you mix declaratives and executables.
The compiler process the source in a single pass, when it hits the first executable statement it switch from DECPASS to EXEPASS.
So if your usefile has both declaratives and executables, you have to INCLUDE your usefile twice. Once in the declaratives and once again in the executables.
In your case it would be in the executables.
On a side note, there seems to be no way to use conditional compile with the proc compiler - using SUBROUTINES or SUBPROGRAMS after the END of the executables. So you cannot have a single usefile contain DECLARATIVES, EXECUTABLES and SUBROUTINES/SUBPROGRAMS. The SUBs must go into a separate INCLUDE file.
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.