Precompilation failed as duplicate environmentvariable found

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sree123
Participant
Posts: 4
Joined: Fri May 25, 2012 2:47 am
Location: Cochin

Precompilation failed as duplicate environmentvariable found

Post by sree123 »

I have a job that needs a parameter.So I included the parameter in a parameter set and tried executing the job.Even though the parameter is in parameter set,the job aborts in stages wherever this parameter is used.Then I included the parametr in job defi eventhough its defined in parameter set.Then the job shows as "precompilation failed as duplicate environment variable found".

What may be the reason for this?

Thanks and regards .......
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
Just remove that parameter from job and try to run.
jerome_rajan
Premium Member
Premium Member
Posts: 376
Joined: Sat Jan 07, 2012 12:25 pm
Location: Piscataway

Post by jerome_rajan »

Did you compile the job after adding the parameter to the parameter set?
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn

Life is really simple, but we insist on making it complicated.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Which datastage version?? I presume it is 8.7 or later.

Did you migrate it from other version?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

As the parameter is already part of a parameter set, there is no need to also add it to the job parameters: you have discovered what will happen when you do so.

What errors did you receive originally? Those are the errors you need to resolve. Perhaps it's how you reference the parameter or the data contained within in?

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
sree123
Participant
Posts: 4
Joined: Fri May 25, 2012 2:47 am
Location: Cochin

Post by sree123 »

Ya i tried to execute the job by removing the parameter.But that time the job is getting aborted.
sree123
Participant
Posts: 4
Joined: Fri May 25, 2012 2:47 am
Location: Cochin

Post by sree123 »

Its DS 8.5......I didn't migrate it from anyother version
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Post by nikhil_bhasin »

what data-type u gave it to the parameter?
sometimes in 8.7 if u include a single parameter in the job properties and datatype is kept as parameter/set it will not compile, try giving string as data-type to parameter
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

But that time the job is getting aborted
And you have yet to provide us with what that error is. Also, it would be of help to know the value present in the variable and how you reference that variable in your job.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply