Dsjob command issue

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Dsjob command issue

Post by dr.murthy »

Hi,

am tring to exeute a job through unix, for that i wrote a simple script for callling data stage job. script is throwing error and saying -parm : not found. can any one tell me any thing wrong in my script.

Code: Select all

#!/usr/bin/ksh
# this script is used to run datstage job
/opt/Ascential/DataStage/DSEngine/bin/dsjob
-server d0ddw01
-user ardent
-password ardent
-run -wait -mode NORMAL
-param $PWD = .
-param DSN=DWTST01
-param DBUserName=w951gxd
-param DBPassword=mcgi05
-param SourceDir=/mdw/dvl/work/11456/Source/
11456 Load_Staging
Error Message

Code: Select all

Command Syntax:
        dsjob [-file <file> <server> | [-server <server>][-user <user>][-password <password>]]
                        <primary command> [<arguments>]

Valid primary command options are:
        -run
        -stop
        -lprojects
        -ljobs
        -linvocations
        -lstages
        -llinks
        -projectinfo
        -jobinfo
        -stageinfo
        -linkinfo
        -lparams
        -paraminfo
        -log
        -logsum
        -logdetail
        -lognewest
        -report
        -jobid
        -import

Status code = -9999 DSJE_DSJOB_ERROR
runjob[4]: -server:  not found
runjob[5]: -user:  not found
runjob[6]: -password:  not found
runjob[7]: -run:  not found
runjob[8]: -param:  not found
runjob[9]: -param:  not found
runjob[10]: -param:  not found
runjob[11]: -param:  not found
runjob[12]: -param:  not found
runjob[13]: 11456:  not found
D.N .MURTHY
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Incomplete lines need to end in a backslash (technically this is "excaping the line terminator), or you need to use a "here script". Or put the entire dsjob command onto one line in the script.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Post by dr.murthy »

yes, thanks for updates
D.N .MURTHY
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... resolved?
-craig

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