Use SessionClose to end the current session.
SessionClose may also be entered as SessClose, CloseSess[ion], Close, or End.
Optional Operands
OPT can be specified as NOSAVE to terminate a FileEdit session without updating the associated file. BIM-EDIT/XP allows a FileEdit session to be terminated with the SessionClose command only if no updates have taken place or OPT is specified as NOSAVE. Use the SessionFile command to terminate a FileEdit session and update the file.
VERIFY If VERIFY is specified as "Y[es]" or "On", if the session has been updated and if OPT is not specified as NOSAVE, SessionClose will display a dialog box that provides a choice of saving or discarding the updates. If VERIFY is specified as "N[o]" or "Of[f]", if the session has been updated, the operation is rejected.
Default: No.
Pressing F3 invokes the following command:
=> SessionClose Verify=Yes
After the session is ended, the screen will display the previous session in the session chain.
When a FileEdit or FileList session is ended, the last referenced file is set to the file for the session ended. On DOS/VSE, when a JobList session is ended, the last referenced POWER job entry is set to the entry for the session ended. On MVS, when a JobList session is ended, last referenced JES job or data set is set to the entry for the session ended. This scheme for setting last referenced file or job is useful because there are often further commands desired (such as FileProcess or JobPurge) against the entity ended. It is also confusing because last referenced does not correspond to what is showing on the screen after a SessionClose.
Return Codes
OK Successful.
Procedure Notes
When a FileEdit or FileList session is ended, the TXM variables are set to the attributes of the file for the session ended. When a JobList session is ended on DOS/VSE, the PWR variables are set to the attributes of the POWER job entry for the session ended. When a JobList session is ended on MVS, the JCT, JQE, and PDB variables are set to the attributes of the JES data sets for the session ended.
Examples
End the current session (no updates have occurred):
=> end
End the current session (discard any updates):
=> end nosave