BPX1SSI (setsid) example

The following code creates a session and a process group (and is the leader of both). For the callable service, see setsid (BPX1SSI, BPX4SSI) — Create a session and set the process group ID. AMODE 64 callers use BPX4SSI (setsid) example.
                                              
         CALL  BPX1SSI,              Create session, set process grp ID+
               (RETVAL,              Return value: -1 or new session ID+
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------