MPE/iX Quick Reference Guide (32650-90881)

180 Chapter7
File System
System Defined Files
System Defined Files
MPE/iX reserves certain file designators for system defined files. System defined files are
reserved words that refer to a specific type of system file.
$STDIN refers to the device that you used to initiate your current session or job.
The device is normally a terminal for a session and spoolfile for a job. Data
entries in this file should not have a colon in column 1. (A colon in column
1 indicates the end-of-data). Use the :EOD command to delimit data.
$STDINX is the same as $STDIN, except that a colon in the first column does not
indicate the end of data. Thus $STDINX may contain commands as well as
data. Interactive programs and subsystems often use $STDINX to
reference the terminal as an input file. Use :EOD or :EOF to indicate the
end of data.
$STDLIST is the device designated as the session or job output device, the device
MPE uses to respond to your commands. This device is normally a
terminal for sessions and line printer for jobs.
$NULL is a file designator that is used to tell MPE to read from or write to a
non-existent file as though the input-output operation were successful.
This file is usually used to discard output.
$NEWPASS is a temporary disk file. MPE uses $NEWPASS to store information during
the execution of a program. When a program closes $NEWPASS, the
system automatically changes its name to $OLDPASS.
$OLDPASS is a temporary disk file containing the contents of the last $NEWPASS file
closed. When a $NEWPASS file is renamed $OLDPASS, the system
deletes the previous version of $OLDPASS.
You can use $NEWPASS and $OLDPASS when compiling and preparing a program. MPE
compilers write object code to $NEWPASS during compilation. When compilation is
complete, the compiler closes $NEWPASS and the system renames the object code (USL)
file $OLDPASS. When you prepare the USL file ($OLDPASS), the system stores prepared
(executable) code in the $NEWPASS file. When preparation is complete, the system closes
$NEWPASS and renames the executable code file $OLDPASS. Use the SAVE command to
save the program stored in $OLDPASS to a permanent file.