Inquiring the Name of a Job

I have developed a job which updates several fields in a table. This table has a comment field and as part of the update I'd like to insert the name of the job being run. So that I dont have to hard-code the job name in my code, is there a means of querying the job name?

Without including the full job, this is a sample bit of code which should help explain

static void myJob(Args _args)
{
    str myJobName = ??????
    
    info(strFmt("The name of this job is: %1", myJobName));
}

The expected output would be;

The name of this job is: myJob

Any help with this would be greatly appreciated

TIA, Paul

Related
Recommended