Error compiling Job Control Subroutine <JobName>

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sridhar.b
Participant
Posts: 6
Joined: Tue Oct 30, 2007 9:51 am

Error compiling Job Control Subroutine <JobName>

Post by sridhar.b »

Hi...

I am getting error while compiling the job. I have attached the error message below.

DataStage Job Compilation Report
================================

Server: IP
Project: xxxxxx1

Started at: 12/14/2009 8:46:43 PM
Finished at: 12/14/2009 8:46:46 PM
Time Taken: 12:00:02 AM

Jobs Processed: 1
Jobs Compiled Successfully: 0
Jobs Failed Compilation: 1

Compile Information
===================

<JobName> - Failed
Error compiling Job Control Subroutine <JobName>
Compiling: Source = 'RT_BP4408/JOB.1908314850.DT.1532474222', Object = 'RT_BP4408.O/JOB.1908314850.DT.1532474222'
************************************************************************************************************************************************************************************************************************************************
WARNING: Variable '<Stage>WORKDIR' never assigned a value.
WARNING: Variable '<Stage>SCRIPTDIR' never assigned a value.

Compilation Complete.
(<JobName>)

Could any one give me the suggestion? I've imported whole project and compiled. I'm getting error for only one job.

Thanks in advance for your suggestions.

Regards.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And you're certain this job is compilable in the original project? Perhaps you are missing user-defined environment variables, they are not included in a Project export.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

These are stage variables in a Transformer stage that presumably have not been declared to have an initial value. Then the job design makes reference to them.

Perhaps the importer has missed importing the initial value. Check on both projects. See if there are any differences.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sridhar.b
Participant
Posts: 6
Joined: Tue Oct 30, 2007 9:51 am

Post by sridhar.b »

chulett wrote:And you're certain this job is compilable in the original project? Perhaps you are missing user-defined environment variables, they are not included in a Project export. ...
Yes... In original Project the job is running without any issues. When we tried to import it is giving an error.

Moreover this job is not using any stages or routines. It is built with the code in Job Control.
biju.chiramel
Participant
Posts: 5
Joined: Mon Oct 29, 2007 9:55 pm
Location: Mumbai

Post by biju.chiramel »

May be its because in original project you have
WORKDIR
SCRIPTDIR with default values set...

and in current project nothing set for the variables.

Please check in job properties and environment variables...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then tell us what exactly WORKDIR and SCRIPTDIR are. That should lead you to the answer.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sridhar.b
Participant
Posts: 6
Joined: Tue Oct 30, 2007 9:51 am

Post by sridhar.b »

Thanks to all.

Yes the variables were missing from the ENVIRONMENTPARMS file. Now the issue got resolved
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

I am getting the same prob, can you explain on how you have resolved this.

Regards,
Regards,
Shree
785-816-0728
Post Reply