Posted by Barbara Brazil on August 01, 2014 at 08:21:16:
In Reply to: Re: PROC Compiler vs INCLUDE files posted by Robert G Laurin on August 01, 2014 at 07:11:28:
Robert:
Each proc is really a separate program. It must end with an END statement. Therefore, procs should not be in the same include file as any executable code that's not part of a proc. The include statement for the executable part of the proc must be after the END statement in your main program.
In the Main program:
include "myprocs.inc" ! this is for the proc declarations
... declarations for Main program
... executable code for Main program
END
include "myprocs.inc" ! this is the executable code for the procs (the proc definition)
In myprocs.inc:
.IF DECPASS
... proc declarations and any other variable/FORMAT declarations that will be global to the Main program and all procs
.ENDIF
.IF EXEPASS
... proc definitions, each concluded with an END statement
.ENDIF
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.