0% found this document useful (0 votes)
210 views3 pages

Dsjob Command

The dsjob command can be used to run, stop, monitor and retrieve information about jobs. Key functions include running a job with options to abort on warnings, wait for completion or check status, stopping a running job, listing projects, jobs, stages and other details, and accessing log files and reports. Project name, job name and other identifiers must be provided correctly.

Uploaded by

abbhi19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
210 views3 pages

Dsjob Command

The dsjob command can be used to run, stop, monitor and retrieve information about jobs. Key functions include running a job with options to abort on warnings, wait for completion or check status, stopping a running job, listing projects, jobs, stages and other details, and accessing log files and reports. Project name, job name and other identifiers must be provided correctly.

Uploaded by

abbhi19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

dsjob -run -warn <n> <project> <job> : The job will get aborted if has more
than <n> warnings
Output :
Status Code = 0
2. dsjob -run -wait <project> <job> : It shows on screen that the job is getting
executed and outputs status code on execution.
Output :

Waiting for job...


Finished waiting for job
Status code = 0

3. dsjob -run -jobstatus <project> <job> : It shows job status after execution.
Output :
Waiting for job...
Finished waiting for job
Job Status
: (2)
Status code = 2

Stopping a Job
You can stop a job using the stop option.
dsjob stop <project> <job>
stop terminates a running job.
project is the name of the project containing the job.
job is the name of the job.

Listing Projects, Jobs, Stages, Links, and Parameters


You can list projects, jobs, stages, links, and job parameters using the dsjob
command. The different versions of the syntax are described below.
1. dsjob -lprojects
i. Output :

Lists all the projects in the server

2. dsjob -ljobs <project>


i. Output :

Lists all the jobs present in the <project>

3. dsjob -linvocations <project> <job>


i. Output :
Lists all the invocation ids generated in the <project>
4. dsjob -lstages <project> <job>
i. Output :
Lists the stages which are there in the job
5. dsjob -llinks <project> <job> <stage>
i. Output :
Lists the input or output links of the <stage>

Retrieving Information
1.

dsjob -projectinfo <project>


Output :
Host Name
: HOSTNAME
Project Name : PROJECTNAME

2.

dsjob -jobinfo <project> <job>

To get Information about Job


Output :
Job Status
: NOT RUNNING (99)
Job Controller : not available
Job Start Time
: Wed Jul 29 06:12:41 2009
Job Wave Number
:0
User Status : not available
Job Control
: not available
Interim status: NOT RUNNING (99)
Invocation ID : not available
Last Run Time: not available
Job Process ID
:0
Invocation List
: CheckDupes
Job Restartable
:0
3.

dsjob -stageinfo <project> <job> <stage>


Output :
Stage Type
: CTransformerStage
In Row Number
:1
Satge Last Error: <none>
Stage start Time: Thu Jul 30 00:20:55 2009
Stage End Time
: Thu Jul 30 00:20:55 2009
Variable List : not available
Stage Name : xfrm_add_variables

4.

dsjob -linkinfo <project> <job> <stage> <link>


Output :
Link Row Count
:1
Link Last Error
: <none>
Link DBMS Code
: not available
SQL State
: not available
Link Name
: lnk_Add_Var

5.

dsjob -lparams <project> <job>


Output :
Listout all the parameters of the job

6.

dsjob -paraminfo <project> <job> <param>

Accessing Log Files


1. dsjob -log <project> <job>
Output :
Enter message text, terminating with Ctrl-d
Message text will be present in the job log.
How r u?
Message read.
2. dsjob -logsum <project> <job>
Output :
Gives the detail log of the job
3. dsjob -logdetail <project> <job> <first event id> [<last event id>]
dsjob -logdetail <project> <job> [-wave <wave no>]
Output :
Event Id: 140
Time : Thu Jul 31 09:14:27 2009
Type : INFO
User : :local:
Message
:
Finished Job <job>
4. dsjob -lognewest <project> <job> [<event type>]

event type = INFO | WARNING | FATAL | REJECT | STARTED |


RESET | BATCH
Output :
Newest Id = 0
5. dsjob -report <project> <job> [report type]
report type = BASIC | DETAIL | XML
BASIC means that your report will contain very basic information like start/end time of
the job , time elapsed and the current status of the job. DETAIL as the name indicates
will give you a very detailed report on the job down to the stages and link level. XML
would give you an XML report which is also a detailed report in an XML format.

Note:User has to provide valid Projectname,Jobname,stagename


and linkname etc

You might also like