Assign Value to Job Parameter

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
bonds
Premium Member
Premium Member
Posts: 15
Joined: Thu Aug 16, 2007 12:34 am
Location: Australia

Assign Value to Job Parameter

Post by bonds »

Hi,

I have a job parameter. I need to assign value to this parameter in my Job Control Coding Window. Can I do that? If yes, how?

Thanks in advance for your help guys.

Have a good one.
saikir
Participant
Posts: 92
Joined: Wed Nov 08, 2006 12:25 am
Location: Minneapolis
Contact:

Post by saikir »

Hi,

If your parnt job is accepting the parameters and you want the child job to be called with these parameters, you can do it as follows:

ErrCode = DSSetParam(hJob1, "ORACLE_DSN", "ORACLE_DSN")

Where your job accepts the parameter ORACLE_DSN

Or you can hard code the values as below:

ErrCode = DSSetParam(hJob1, "ORACLE_DSN", "DSN1")

You can also read the parameters from a particular file.

Sai



Sai
saikir
Participant
Posts: 92
Joined: Wed Nov 08, 2006 12:25 am
Location: Minneapolis
Contact:

Post by saikir »

Hi,

If your parnt job is accepting the parameters and you want the child job to be called with these parameters, you can do it as follows:

ErrCode = DSSetParam(hJob1, "ORACLE_DSN", "ORACLE_DSN")

Where your job accepts the parameter ORACLE_DSN

Or you can hard code the values as below:

ErrCode = DSSetParam(hJob1, "ORACLE_DSN", "DSN1")

You can also read the parameters from a particular file.

Sai



Sai
Post Reply