JOB$ (job_ID) or

JOB$ (jobnr,tag) or

JOB$ (jobname)


Toolkit II

This function returns the name of a specified job, or an empty string if it has no name or if the parameters do not specify an existing job. The third format is somewhat curious since you need to supply the very thing you are asking for (ie. the jobname)! A negative job_ID points to the calling job.


See OJOB, PJOB, JOB_NAME and NXJOB for more information on current jobs. Compilers normally include their own commands to set the correct job name.