dsjob

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
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

dsjob

Post by dodda »

Hi,

I wrote the below script to know the information about sequential file that i used in my job.
eval $DSHOME/bin/dsjob -lstages DESRMNA4 testdup Sequential_File_2

Where DESRMNA4 is the project name and testdup is my job name.

when i tried to execute the script, it is displaying the following error.

Invalid arguments: dsjob -lstages [-useid] <project> <job|jobid>

Status code = -9999 DSJE_DSJOB_ERROR.

And also , I want to know what are options that are available in the dsjob command?

Any ideas what iam missing ? please advice me.

Thanks in advance,
dodda
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The -lstages option doesn't like you specifying a stage name. Remove "Sequential_File_2" from the command line and retry
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The -lstages option lists the stages in a job, not information about a particular stage. You probably need the -stageinfo option.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Post by dodda »

Ray . It's working fine.

Can you share the information about the available options for dsjob command.

Regards,
dodda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Like any good command, dsjob has full 'usage' implemented, so not specifying any parameters will cause it to spit them out. Also check the Command Line Interface chapter in the Server Job Developer's Guide pdf, everything (including source code) is there.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The same chapter is repeated in Parallel Job Advanced Developer's Guide - I note that your job type is marked as parallel.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, you can look in whichever Developer's Guide floats yer boat, you'll find the same information in both.
-craig

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