Command Line - Paramenters

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
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Command Line - Paramenters

Post by nishtala »

Hi Gurus,

We have paramenter sets defined for a datastage job which does a generic CDC, we pass parameters of table names and connetions and all that good information. From datastage when we run we select the parameter to be passed and run.

Now we have to do it autosys so we need a command line syntax which we are not able to find in documentation.

Can we pass parameter set values as paramenters to run a job through command. If any one have done it before please let us know the syntax.

Thanks in advance
VCInDSX
Premium Member
Premium Member
Posts: 223
Joined: Fri Apr 13, 2007 10:02 am
Location: US

Post by VCInDSX »

An interesting blog on Parameter sets can be found in http://it.toolbox.com/blogs/infosphere/ ... sets-25604 (Thanks to Vincent for his wonderful work).

Are you looking for syntax to pass specific parameters or the parameter set as a whole from a file?
-V
VCInDSX
Premium Member
Premium Member
Posts: 223
Joined: Fri Apr 13, 2007 10:02 am
Location: US

Post by VCInDSX »

An interesting blog on Parameter sets can be found in http://it.toolbox.com/blogs/infosphere/ ... sets-25604 (Thanks to Vincent for his wonderful work).

Are you looking for syntax to pass specific parameters or the parameter set as a whole from a file?
-V
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The Command Line Interface is fully documented in either the Parallel Job Advanced Developer's Guide or the Server Job Developer's Guide. Or search the forums for 'dsjob'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Post by nishtala »

I am looking to command line which will pass the parameter set a set of values and use the generic job and after it finishes use another paramenter set values for to run the same job.

It will be great if you can give me a syntax to use.

Thanks
VCInDSX
Premium Member
Premium Member
Posts: 223
Joined: Fri Apr 13, 2007 10:02 am
Location: US

Post by VCInDSX »

Hi
Please check the section "Command Line Interface" in the Server Job Developer's guide (Page number 397 and later) for a detailed review of Command Line Invocation.

Section "Starting a Job" lists the syntax and options..

Try it out and post your respones here...

At a high level, you should be able to get a job running with the following template...

dsjob -domain domain_name -user userid -password password -server server_name -run -param ParameterSet.Param1=value -wait -jobstatus ProjectName JobName.invocationID

But there are a lot of variations that you can try.... and others can pitch in when you post your specific responses....

Good luck,
-V
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Post by nishtala »

We will try this option and let you know if it works... Thanks for your responses
nishtala
Participant
Posts: 19
Joined: Thu Oct 25, 2007 10:51 am

Post by nishtala »

" param ParameterSet.Param1= value " part did the trick, it works.

Thanks a lot
Post Reply