NLS - LANG environment variable on Unix/Linux

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ecote
Participant
Posts: 15
Joined: Wed May 20, 2009 9:25 am

NLS - LANG environment variable on Unix/Linux

Post 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
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

LANG environment variable is used to override the LANG defined in UNIX.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ecote
Participant
Posts: 15
Joined: Wed May 20, 2009 9:25 am

Post by ecote »

I know, what's the purpose of overriding it in the dsenv file?
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Then your answer is here.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ecote
Participant
Posts: 15
Joined: Wed May 20, 2009 9:25 am

Post by ecote »

Thanks, but I already read that. It still doesn't specify for what it is used for.
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post 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
Thanks,
Prasanna
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post 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.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ecote
Participant
Posts: 15
Joined: Wed May 20, 2009 9:25 am

Post 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?
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Please read section 8.2 here
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ecote
Participant
Posts: 15
Joined: Wed May 20, 2009 9:25 am

Post by ecote »

... I all understand this. But does answer any questions I have.
Post Reply