System Startup, Configuration, and Shutdown Reference Manual (32650-90892)
114 Chapter4
Using the System Generator (SYSGEN)
Redirecting SYSGEN Input and Output
Redirecting SYSGEN Input and Output
By using SYSGEN’s file designators, you can redirect SYSGEN’s input and output.
Redirecting SYSGEN’s input and output enables you, for example, to issue commands to
SYSGEN using command files that can operate without user intervention or interactive
keyboard input.
SYSGEN uses three formal file designators for input, output, and listing:
• SYSGIN. The formal file designator for the standard SYSGEN input file. By default, this
file is set to $STDINX.
• SYSGOUT. The formal file designator for the standard SYSGEN output file. By default,
this file is set to $STDLIST.
• SYSGLIST. The formal file designator for the standard SYSGEN listing file. By default,
this file is set to any device in the class LP.
$STDINX and $STDLIST are the file names for the terminal from which SYSGEN is run.
The device in class LP is your system printer.
Redirect SYSGEN input and output by using the FILE command and equating some other
files to SYSGIN, SYSGOUT, and SYSGLIST, or by using the INFO parameter and options in the
SYSGEN command line.
For example, the commands FILE SYSGIN=NEWIN and SYSGEN,,NEWIN accomplish the
same task. When SYSGEN is activated, they utilize NEWIN as the input file. Likewise, the
commands FILE SYSGOUT=NEWOUT and SYSGEN,,,NEWOUT equate NEWOUT to the formal file
designator, SYSGOUT, so SYSGEN utilizes NEWOUT as the output file.
With redirection you can use a command input file to complete common routines that you
perform frequently. Example 4-9 lists a three-line job stream (named SYSGENON) which,
when run using the STREAM command, logs on to the system, enters SYSGEN, and
executes the SYSGEN command file (LISTIT) in Example 4-10.
Refer to MPE/iX Commands Reference Manual for information on the STREAM command.
Example 4-9. Command File (SYSGENON) Created With EDITOR
1 !JOB SYSGENON,MANAGER/userpass.SYS/acctpass,groupname
2 !SYSGEN,,LISTIT
3 !EOJ
Table 4-2. explains the actions performed by each line of the preceding command file.
Table 4-2. Actions Performed by Command File Example
Line Action
1 Log on to the file SYSGENON as MANAGER.SYS with all accompanying
system manager capabilities.