SPL to HP C/XL Migration Guide (30231-90001)
9- 8
The simplicity and flexibility of these routines render the direct use
of the MPE intrinsics a highly questionable option. The use of standard
HP C/XL library functions in general will greatly improve portability to
another operating system such as HP-UX.
File Equations
Standard attributes of a file used by an HP C/XL program may be modified
through the use of MPE XL :FILE commands, just as for SPL.
An additional feature available to HP C/XL is the redirection of the
standard (default) input and output files. This is accomplished by
supplying alternate MPE XL file names in the INFO= string of the MPE XL
:RUN command. For example:
RUN HPCPROG; INFO="<myinput >myoutput"
The "<" parameter causes all standard input operations--the MPE XL
intrinsics such as READ and READX and the HP C/XL functions such as scanf
and getc--to access the file MYINPUT instead of $STDIN. Likewise, the
">" parameter causes any standard output to be directed to the file MY-
OUTPUT instead of $STDLIST. For more information, see the
HP C/XL Ref-
erence Manual Supplement
.