xcall JOBNUM, jobnumber
JOBNUM returns the current job number (in any numeric parameter format).
Note that the job number is established when the session is launched, as the position within the job table, and remains fixed for the duration of a session.