Page 1 of 1

NLS - LANG environment variable on Unix/Linux

Posted: Fri Mar 22, 2013 10:03 am
by ecote
Hi,

After reading all I could find about NLS for DataStage, it is still unclear to me for what purpose the LANG environment variable is used for?

How DataStage uses it?

Thanks

Posted: Fri Mar 22, 2013 12:03 pm
by priyadarshikunal
LANG environment variable is used to override the LANG defined in UNIX.

Posted: Fri Mar 22, 2013 12:16 pm
by ecote
I know, what's the purpose of overriding it in the dsenv file?

Posted: Fri Mar 22, 2013 12:41 pm
by priyadarshikunal
Then your answer is here.

Posted: Fri Mar 22, 2013 12:51 pm
by ecote
Thanks, but I already read that. It still doesn't specify for what it is used for.

Posted: Wed Mar 27, 2013 5:19 am
by prasannakumarkk
It tells the datastage in what language it has to read/write with OS data.
Say like if you want to write french character in to the OS. You must mention that the data is having french language so that it gets written in proper format

Posted: Wed Mar 27, 2013 11:28 am
by priyadarshikunal
LANG defines the date formats, default file encoding etc. This is used by applications such as DataStage to determine the date format, default file encoding and also language to use for error messages and instructions.

Introduced for Internationalization or localization support in the operating system.

Posted: Wed Mar 27, 2013 12:09 pm
by ecote
I don't think the LANG env variable is used for file default file encoding. When NLS is enabled the Project/Job/Stage NLS seetting is used for that.

Is LANG value only used when NLS is not enabled?

Piyadarshikunal, are you sure about the error messages and instructions part?

Posted: Wed Mar 27, 2013 1:28 pm
by priyadarshikunal
Please read section 8.2 here

Posted: Wed Mar 27, 2013 1:46 pm
by ecote
... I all understand this. But does answer any questions I have.