Use SessionCompile to save and compile (or assemble) the current session.
SessionCompile may also be entered as SessionComp[ile], SessComp[ile], CompileSess[ion], or CompSess[ion].
SessionCompile may also be invoked by pressing Ctrl-C.
SessionCompile is supported for workstation files only. It is not supported for BIM, PDS or VSE files. (BIM and workstation files can be compiled with the FileCompile command. This is often a more useful method of compiling a program.)
For compiles of workstation files, the type of compile is determined by the TYPE and ATTR fields for the file associated with the session. TYPE and ATTR should be set for the file prior to creating the session by using FileDefine or FileAlter. If TYPE is not set, the file extension (i.e, the last part of the file name) will be used as the TYPE. For information on what to set these values to, contact your System Administrator. (Administrators should refer to OS/2 Compile Procedures.)
SessionCompile saves the session before starting the compilation. It does not close the session.
SessionCompile starts a subtask to do the compilation. While the compilation is running, other operations can be performed in BIM-EDIT/XP. BIM-EDIT/XP will prevent updates to the session being compiled and will prevent the session from being closed until the compilation has completed.
When the compilation completes, any error lines are inserted into the session as temporary lines. The session is then qualified such that only error lines and the line immediately preceding any error line are shown. Typically, the source of the errors is then corrected and the SessionCompilereissued.
Temporary lines are always discarded when the session is saved.
SessionCompile sets the last referenced file.
Return Codes
OK Successful.
Examples
Compile the program in the current session:
=> sesscomp