Attaining job required parameters from a Unix shell script

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
charles.craig@physiciansm
Participant
Posts: 15
Joined: Wed May 11, 2005 12:09 pm

Attaining job required parameters from a Unix shell script

Post by charles.craig@physiciansm »

Is there a way to attain job required parameters from a Unix shell script? I know I can get some job information using:

Job_Info=`dsjob -jobinfo DSProject DSJob`

Status code = 0
Job Status : NOT RUNNING (99)
etc...

But this does not show that the job requires two parameters when called, I.E. file_name1, file_name2

Thank you for any advice
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use "dsjob -paraminfo" instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
charles.craig@physiciansm
Participant
Posts: 15
Joined: Wed May 11, 2005 12:09 pm

Post by charles.craig@physiciansm »

Actually, -lparams was what I desired:

Job_Params=`dsjob -lparams DSProject DSJob`

Status code = 0
file_name1
file_name2

Thank you for your help Craig. You set me on the right path!
Last edited by charles.craig@physiciansm on Mon Jun 27, 2005 3:29 pm, edited 1 time in total.
charles.craig@physiciansm
Participant
Posts: 15
Joined: Wed May 11, 2005 12:09 pm

I like your recent headline Craig

Post by charles.craig@physiciansm »

chulett wrote:"Apathy Sweeping Nation, No One Cares"
How about:
"I joined the team and was met with ignorance and apathy." Well, what are you going to do about it? "I don't know and I don't care." :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: I like your recent headline Craig

Post by chulett »

charles.craig@physiciansm wrote:"I joined the team and was met with ignorance and apathy." Well, what are you going to do about it? "I don't know and I don't care." :lol:
:lol:

Sorry for the wrong answer, at least (as you said) I got you pointed in the right direction. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Ray man is too tired to say apathy serks.
Mamu Kim
Post Reply