Page 1 of 1

Error compiling Job Control Subroutine <JobName>

Posted: Tue Dec 15, 2009 3:57 pm
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.

Posted: Tue Dec 15, 2009 4:28 pm
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.

Posted: Tue Dec 15, 2009 7:44 pm
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.

Posted: Thu Dec 17, 2009 12:16 am
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.

Posted: Thu Dec 17, 2009 12:30 am
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...

Posted: Thu Dec 17, 2009 7:15 am
by chulett
Then tell us what exactly WORKDIR and SCRIPTDIR are. That should lead you to the answer.

Posted: Thu Dec 17, 2009 11:43 am
by sridhar.b
Thanks to all.

Yes the variables were missing from the ENVIRONMENTPARMS file. Now the issue got resolved

Posted: Mon Mar 22, 2010 2:42 pm
by Sreedhar
I am getting the same prob, can you explain on how you have resolved this.

Regards,