The first thing EZSPL.SBR (SPOOL.SBR) does upon being called is to look for configuration files, which consist of the following:
EZ:<printfilename>.SFL
EZ:<programname>.SPG
EZ:<printername>.SPR
EZ:<termname>.SPL
MEM:SYSTEM.SPL
SYSTEM.SPL[p,pn]
SYSTEM.SPL[p,0]
EZ:SYSTEM.SPL
If none of these are found, then printing proceeds as if EZSPL did not exist. Otherwise, it opens the first file it finds and process the parameters contained within.
Each of the statements in the config file must be in all upper case, with no spaces, except within a description field (e.g. "MENU = ON" and "menu = On" are invalid). Standard rules apply Boolean Arguments in INI Files.
Individual sections may also be added to the configuration file according to user name.
User name is determined by the native operating system logon procedure, and can be seen in the SYSTAT display or retrieved with GETUSN.SBR. It is not case sensitive in this context.
See EZSPL.SBR for the complete list and descriptions of EZSPL commands.
EZSPL Sample Config File
MENU=OFF
TYPE=OFF
ASKPRT=OFF
PRTSPL=PDFX,PDF Printer
[jack]
MENU=ON
TYPE=ON
ASKPRT=ON
DEFAULT=JET2
PRTSPL=JET2,Jack's Jet Printer
[always]
PRTSPL=JET1,Common Jet Printer
PRTSPL=DRAFT,Oki draft
[default]
DEFAULT=JET1
In the above case, the first four lines are always processed. They could have been preceded with another [always] header, or combined with the other [always] section. The five lines under [jack] are only processed if the user is jack, in which case the boolean options would override the previously set ones, the DEFAULT printer would only apply if no printer had been previously specified (by the application or in miame.ini), and the PRTSPL line defining the JET2 printer would be added to the previous set of printers (currently containing only PDFX). The [always] section always gets processed. The [default] section would only be processed for users other than jack.
This capability of adding sections for individual users allows a great deal of flexibility for large systems.