Page 1 of 1

Problem compiling job due to multiple environment variables

Posted: Thu Jul 07, 2016 1:27 am
by TonyInFrance
Hi folks

I have a strange problem. Here goes.

We all know DataStage is strictly case-sensitive.

I thus have 2 environment variables, both pointing to the path where my .ds (dataset descriptor) files are stored - one if PathDS and the other is PathDs. this is because at some point we were using DS and eventually norms changed and we moved to the naming convention of having just the first letter in caps thus converting to Ds. No one thought about removing the PathDS from the list of environment variables.

Today, in my job I can addboth these variables in my parameter list (job properties->add environment variable) but cannot compile since I get the message Precompile failed. Found duplicate environment variable in job definition.

Is this funny? How can I add duplicate variables without any error but am only policed when i try and compile the job?

And it gets better:

If I don't declare the variable with the small s so PathDs but use it in the job, the job runs fine if launched unitarily but fails when called by a parent sequence job. However a view data on the stage does not run. This fails with the error that the dataset inidicated by PathDs/dataset does not exist - which is logical to me.

What is flabbergasting is how is the job running?

Any ideas?

Thanks

Tony

Posted: Thu Jul 07, 2016 5:42 am
by chulett
Forgive me... it's 5:30 in the morning, the coffee isn't ready yet and I haven't had much sleep... but I think what you'll find is that it isn't DataStage that is case sensitive, just UNIX.

Posted: Fri Jul 08, 2016 12:53 am
by TonyInFrance
I was under the impression that both DataStage and UNIX are super case-sensitive - at leats that's what Ascential had taught us in 2005...:-O

Posted: Fri Jul 08, 2016 11:49 am
by chulett
Well.. we know certain aspects of DataStage are case-sensitive, like parameter names for example. I was just thinking that in your particular scenario that there was a mismatch between sensitivities, so to speak between the tool and the O/S level. But then in my defense it was very early in the morning and I haven't touched the tool since the end of 2009 so... perhaps someone else will step up and enlighten us both. :wink:

Re: Problem compiling job due to multiple environment variab

Posted: Mon Jul 11, 2016 8:17 am
by qt_ky
TonyInFrance wrote:How can I add duplicate variables without any error but am only policed when i try and compile the job?
Precompilation happens on the client tier, and in Windows, environment variable names are not case-sensitive. The rest of compilation takes place on the DataStage server.

Posted: Mon Jul 11, 2016 9:09 am
by chulett
Ah... so there is the mismatch of which I spoke. Mostly. :wink: