Page 2 of 2

Posted: Fri Sep 05, 2014 12:06 pm
by subhasis.raha
Please find the routine as below :

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H

jobname= ""

jobname = DSGetJobInfo(DSJ.ME,DSJ.JOBNAME)
Call DSLogInfo("Calling job name ", jobname)

ErrorCode = 0
I am getting Job name as null.

Posted: Sat Sep 06, 2014 8:11 pm
by ray.wurlod
Did your routine compile successfully?

Note that it will not return any results in the Test bed of the Routine editor (since it's not being called from a job there).

Posted: Mon Sep 08, 2014 2:34 am
by subhasis.raha
Yes, There is no compilation error.

I have tried to see the Job Name in log and I am getting job name as null.

Posted: Mon Sep 08, 2014 7:34 am
by chulett
Still not seeing anything wrong so we're still missing something here. What else can you tell us about this? Even the smallest detail might help.

Posted: Mon Sep 08, 2014 7:53 am
by subhasis.raha
I have tried to execute a simple job and used this before subroutine.
There is no warning or error.

But not able to get the job name in before sub routine :(

Posted: Mon Sep 08, 2014 3:20 pm
by chulett
Unfortunately, that doesn't really add any of the details I was hoping for but rather just repeats what we already know. Since nothing of what you posted is obviously wrong, this seems like something that would require "boots on the ground" to figure out... in this case I would suggest you involve your official support provider if you haven't already.