Operating System - OpenVMS
1828398 Members
3596 Online
109977 Solutions
New Discussion

Determining batch job's name

 
SOLVED
Go to solution
roose
Regular Advisor

Determining batch job's name

Hi VMS folks,

Is there a way by using lexicals to determine the name of the current executing job?

What I am trying to accomplish is: currently, we have several batch jobs being used for monitoring things and most of these sends email. What I want to do then is to embed on the procedure some commands so that when it sends a mail, I'll include the batch job name and procedure where the email was generated from for better troubleshooting purposes. For the command procedure, I know that this can be done using f$env("procedure"). But sometimes, our batch job names are different from the command procedure used. Is what I am thinking currently possible using DCL? If so, can somebody give me some hints?

Thanks in advance for your help!
2 REPLIES 2
Karl Rohwedder
Honored Contributor
Solution

Re: Determining batch job's name

Try

f$getqui ("display_job","job_name",,"this_job")

regards kalle
roose
Regular Advisor

Re: Determining batch job's name

Karl,

Thanks for the quick reply! This is what I was actually looking for! Now, I am a happy man for today :)

Roose