FORTRAN Reference Manual
Utility Routines
FORTRAN Reference Manual—528615-001
15-12
FORTRAN_SPOOL_OPEN_ Routine
For example, if error-return is 201, the error is a file system error—the file 
referenced by unit-number is on a node that is no longer accessible. If error-
return is 10250, you must subtract 10000 from error-return to produce error 
250: the node associated with unit-number that you specified is not currently 
accessible over the HP network.
filename
specifies the name of the spooler collector or spooler job file to open for the 
spooling session.
filename-size
specifies how many characters at the beginning of filename identify the 
destination spooler file.
protect
is a character expression with the value 'SHARED', 'PROTECTED', or 
'EXCLUSIVE' that specifies how the file is to be shared.
mode
is a character expression with the value 'INPUT', 'OUTPUT', or 'I-O' that specifies 
whether to open the file for read access, write access, or read and write access. 
The default value (in the absence of a UNIT directive or ASSIGN command 
specifying otherwise) is 'I-O'.
stackspec
is a character expression with the value 'YES' or 'NO'. For additional information, 
see Considerations on page 15-15.
If you run your program as a NonStop process, each time you execute 
FORTRAN_SPOOL_OPEN_, the FORTRAN run-time library checkpoints your 
program environment to your backup process unless stackspec specifies 'NO'.
spacecontrol
spacecontrol is a character expression with the value 'YES', 'NO', or 'DEVICE' 
and specifies whether the first character of each output record is a control 
character that controls vertical spacing for an output device, or is a character of 
data. See “Considerations” in the description of the OPEN Statement on 
page 7-70.










