profiles passing

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

profiles passing

Post by vardhan354 »

Hi,

How to pass the job parameters in datastage jobs for different environments using profiles(unix).

please help me about process,Any documentation regarding this is helpful.

Thanks for your help.
ETL
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea: Environment variables.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

Post by vardhan354 »

yes Ray, it is Environment Variables.

How to pass the environment variables from unix, when the jobs are migrated from dev-test-prod.

Please give your valuble suggestions.

Thanks
ETL
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

Post by vardhan354 »

Can any help in this issue.
ETL
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Yes you can use environment variables as parameter values. There are several other best practices like having a ini file or a text file which is read with all the parameter values like

pSourceDsn=MyDsn
pSourceUser=EtlUser
pSourcePwd=MyPassword

Do a search on DSParams to see how parameters are can be moved around.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

vardhan354 wrote:Can any help in this issue.
I do not get up at 2:45am (my local time when you posted this) just to answer DSXchange posts! :x
Last edited by ray.wurlod on Fri Sep 15, 2006 7:08 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create job parameters using "Add Environment Variable". Use one of the special default values.
  • $ENV obtain value from executing user's environment

    $PROJDEF obtain value from project (set in Administrator client)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If you are looking at the different values of a variable in different user id, $ENV will be prompt aproach, as mentioned in the above.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply