Regarding DSCOMMAND

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
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

Regarding DSCOMMAND

Post by Saama »

Hi Gurus,
when i run dsjob -log projectname jobname, inorder to view the log messages from the command prompt, iam getting error,

saying

ENTER MESSAGE TEXT TERMINATING WITH CTRL+D

can anyone please post the actual syntax.

cheers;
Saama
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

DSCOMMAND? :?

That -log option is for writing log entries - hence your message. You want to use one or more of the following:

-logsum
-logdetail
-lognewest
-craig

"You can never have too many knives" -- Logan Nine Fingers
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

Post by Saama »

Hi Gurus,

when I used the command dsjob -logdetail projectname jobname

Iam getting error

Status code = -9999 DSJE_DSJOB_ERROR

please help me with actual command.Am i going wrong.

cheers;
saama
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You need to go through the manuals. The logdetail needs an event id. logsum does not and gives the entire log.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:idea: Put some effort into figuring this out on your own. At least a little. Please.

For example, from the command prompt type "dsjob -logdetail" and see what happens. A bog standard usage error just like you would expect from any UNIX command where the syntax is revealed.

It is also fully documented in the Command Line Interface chapter in the Server Job Developer's Guide and the online help if you twist it around a little. For example, see DSGetLogEntry in the online help for this particular function.
-craig

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