Pathmaker Reference Manual

SOURCE Command
Pathmaker Application Definition Language (PMADL)
2–80 067869 Tandem Computers Incorporated
SOURCE Command The SOURCE command temporarily changes the current input file to the designated
file, and reads all or part of that file as input.
When it reaches the end of the file, it resumes reading the previous input file.
?SOURCE
filename
[ (
name
[ , ... ] ) ]
filename
Specifies the name of the file to be read.
name
Specifies one or more names of sections of an input file to read.
The file can include multiple sections identified by the same section name.
PMADL processes all of these sections in the order they appear in the file,
provided that their common section name is included in the list of names specified
in the SOURCE command.
If you do not specify a list of names, PMADL processes the entire file.
Usage Considerations The SOURCE command can span multiple lines. Each continuation line must contain
a question mark (?) in the first column of the line.
The SOURCE command must be the last or only command in the command line; no
other commands can follow the list of names.
Example The following command changes the current input file to a remote input file on
\SALES:
?SOURCE \sales.$data.project.requestr
The following command changes the current input file to ONLINE.INFO and reads
?SECTION MAIN-MENU and ?SECTION ADMIN-REQ before changing back to the
previous input file:
?SOURCE online.info (main-menu, admin-req)