If an SP-ASSIGN H command is executed from a Proc, it will leave a mark with the print file number in the secondary input buffer at the time when the ENTRY # is displayed. The mark is the ERRMSG number [1099]. If the process generates the following message:
HOLD ENTRY #17 |
then the PROC secondary input buffer will contain:
1099 17 |
It will also contain any other error message numbers which are generated during execution of the command.
In the following example, a portion of a Proc retrieves a hold file entry number for a succeeding SP-EDIT.
PROC Command |
Description |
P |
Execute the command. |
SS |
Set the buffer pointer to the secondary input buffer. |
B |
Back up input pointer. |
5 IF # A G 99 |
End of buffer, entry not found. |
IF A1 = 1099 G 15 |
Test for mark. |
F |
Advance the pointer to the next argument. |
G 5 |
Test the next parameter. |
15 F |
Advance the pointer to the print file number. |
IF A # (ON) G 98 |
Absent or spurious data. |
HSP-EDIT |
SP-EDIT the print file. |
A |
Move the print file number to the primary output buffer. |
STON HS< HY< |
Turn on the stack for the prompts, as necessary. |
P |
Process the SP-EDIT. |
X DONE |
Normal exit. |
98 XBAD DATA |
Exit with error message. |
99 XNO DATA |
Exit with error message. |
See Also
Using Procs for Printer, Tape and Floppy Disk Control