Passing environment variable through dsjob

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
meet_deb85
Premium Member
Premium Member
Posts: 132
Joined: Tue Sep 04, 2007 11:38 am
Location: NOIDA

Passing environment variable through dsjob

Post by meet_deb85 »

Hi All,

I have to run a job from command line, and pass an environment variable, called in my job every time through dsjob and -param option.

Can anyone suggest what is the correct syntax for it.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

the format is to use single quotes so that the '$' in the environment variable is not expanded, i.e.

Code: Select all

-param '$APT_CONFIG_FILE=/path/to/non/default/new.apt'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Out of curiousity, what exactly are you passing in? If it is already 'in the environment' the job can access it without needing to pass anything when invoking the job. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply