242B OldUser¶
Stub MON 242B (162 decimal) · Mnemonic RUSCN · Group: File Operations (manual section 2.4)
Available from: Background programs (manual compatibility box)
Emulation source: src/handlers/mon_242B_OldUser.c
Description¶
Switches back to the user name you were logged in under before NewUser. The command is similar to logging out and then log in as another user. Your program continues under the old user.
- The monitor call has no function if NewUser has not been executed.
- You may execute NewUser more than once without OldUser in between. OldUser always reset the first user name.
Parameters¶
None.
See also¶
NewUser, QENTER
Compatibility¶
| Machines | Users | Programs |
|---|---|---|
| ND-100 and ND-500 | All users | Background programs |
The manual's compatibility box for this call, word for word.
Yes/no fields from the YAML extraction (not in the manual's words):
| ND-100 | ND-500 | User programs | RT programs | System programs |
|---|---|---|---|---|
| Yes | Yes | Yes | Yes | No |
Examples¶
From the manual (OCR text, not corrected).
ON ROUTINEERROR DO
IF ErrCode >< 0 THEN ...
ENDON
Monitor_Call('OldUser')
Monitor Call('OldUser')
IF (ErrCode .NE. 0) THEN ...
OldUser;
IF ErrCode <> 0 THEN ...
01 ErrCode COMP.
...
MONITOR-CALL "OldUser"
CALL "CbError" USING ErrCode.
IF ErrCode NOT = 0 GO ...
ErrCode : W BLOCK 1
OldUser : EQU 37B9 + 242B
...
CALLG OldUser, 0
IF K GO ERROR
...
ERROR : W1 =: ErrCode %ErrorCode in W1 register.
MON 242 %Monitor call OldUser.
JMP ERROR %Error return from monitor call.
%Normal return.
ERROR, ... %Error number in register A.
...
ndmonlib implementation¶
Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.
| Handler | mon_242B_OldUser |
| Code lines | 5 (non-blank, non-comment lines in the file) |
Source¶
SINTRAN III Monitor Calls (ND-860228.2 EN), page 365.