BPX1GPI (getpid) example

The following code gets the process ID of the caller. For the callable service, see getpid (BPX1GPI, BPX4GPI) — Get the process ID. AMODE 64 callers use BPX4GPI (getpid) example.
                                              
         CALL  BPX1GPI,              Get the process ID                +
               (RETVAL),             Returns value, Process ID         +
               VL,MF=(E,PLIST)       ----------------------------------