Job Information required in before subRoutine

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

subhasis.raha
Participant
Posts: 10
Joined: Tue Apr 03, 2012 9:19 am

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
subhasis.raha
Participant
Posts: 10
Joined: Tue Apr 03, 2012 9:19 am

Post 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
subhasis.raha
Participant
Posts: 10
Joined: Tue Apr 03, 2012 9:19 am

Post 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 :(
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply