How can a batch job get its own batch entry number?
To have a batch procedure retrieve its own batch entry number, use the following: $ Entry = F$GETQUI(“DISPLAY_ENTRY”, – “entry_number”,”display_entry”,”this_job”) Remember that the entry numbers issued by the OpenVMS Job Controller are always opaque longword values. Do not assume you know the format of the entry number, nor the range of entry numbers you might see, nor the algorithm that is used to assign enty numbers. You should simply assume opaque longword.