Search found 198 matches

by mystuff
Thu Jan 03, 2008 12:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: question on returned status code
Replies: 4
Views: 1124

tried my luck , "Aborted" and "Aborted/Restartable" returns the same value 3 :( What does the value i.e. returned code 96 signify in datastage terms. I saw the dsapi.h and it says "Job was stopped by some indeterminate action". don't know what it means (like stopped/abo...
by mystuff
Thu Jan 03, 2008 10:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: question on returned status code
Replies: 4
Views: 1124

I'm honestly not sure how you tell the different between "Aborted" and "Aborted/Restartable". I have a requirement where I need to JUST run the job if its status is "Aborted/Restartable" and reset and run if job status is "Aborted" looks like 3, 96 both repre...
by mystuff
Thu Jan 03, 2008 9:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: question on returned status code
Replies: 4
Views: 1124

question on returned status code

I am using the following code in a script. Browsing throught he site I found one of this code JOB_STATUS=`dsjob -jobinfo $PROJECT $DSJOB | head -1 | cut -d"(" -f2 | cut -d")" -f1` I have a question on this, what are status returned code 3, 96? What is the status code for Aborted/...
by mystuff
Wed Jan 02, 2008 3:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

Code: Select all

eval dsjob -lognewest $Project $JobName | awk -F"\=" '{print $2}' | read EventId 
              if [ $? -ne 0 ] 
              then 
                  echo "Error." 
                  exit 2 
              fi 
.....Next command....... 
I still get the output Status Code=0
by mystuff
Wed Jan 02, 2008 3:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

Code: Select all

eval dsjob -lognewest $Project $JobName | awk -F"\=" '{print $2}' | read EventId 
              if [ $? -ne 0 ] 
              then 
                  echo "Error." 
                  exit 2 
              fi 
.....Next command....... 
I still get the output Status Code=0
by mystuff
Wed Jan 02, 2008 2:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

Great Thanks for the help
by mystuff
Wed Jan 02, 2008 1:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

In dsjob -jobinfo $PROJECT $JOB command returning 0 - the job is still running 1 - Finished 2 - Finished (see log) etc... How is the above code different than the below i.e. don't we have list of anything as that sort for the below commands dsjob -logdetail $PROJECT $JOB dsjob -lognewest $PROJECT $J...
by mystuff
Wed Jan 02, 2008 1:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

Where can I check $? value against

I tried to look in $DSHOME/include/dsapi.h. But didn't know how to look at the returned code from dsjob -lognewest. Similarly I want to look for dsjob -logdetail etc..
by mystuff
Wed Jan 02, 2008 1:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

dsjob -lognewest $Project $JobName | awk -F"\=" '{print $2}' | read EventId
Should I not deal with the status code. I mean if in case the command didnt execute properly for some reason (I do check the job status before running this command). Then what shall I check against?
by mystuff
Wed Jan 02, 2008 1:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

dsjob -lognewest $Project $JobName | awk -F"\=" '{print $2}' | read EventId
Should I not deal with the status code. I mean if in case the command didnt execute properly for some reason (I do check the job status before running this command). Then what shall I check against?
by mystuff
Wed Jan 02, 2008 12:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

ArndW Mystuff - what was wrong with my suggestion? It worked on my system. With the above command The variable Id is getting assigned with two values i.e. when I say eventid=`dsjob -lognewest $Project $Job 2>&1 | cut -d"=" -f2` echo "$eventid" Then I get 841 0 The 0 (ie) the...
by mystuff
Wed Jan 02, 2008 12:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

When I just try to run dsjob -lognewest $Project $Job I get two values displayed on the terminal Newest Id=.... Status Code=0 a) I wanted to suppress both from displaying to the output, looks like as mentioned by ArndW 2>&1 should take care about it. b) I want to assign Newest Id to variable $Id...
by mystuff
Wed Jan 02, 2008 9:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dsjob (status code)
Replies: 21
Views: 13041

dsjob (status code)

I have a code as below to obtain the latest event. On the terminal I obtain Status Code = 0 and appropriate value gets assigned to variable $id id=`dsjob -lognewest $Project $Job | cut -d"=" -f2` Q1) What do I do if I don't want that Status Code = 0 to be displayed at the terminal. I tried...
by mystuff
Fri Dec 28, 2007 8:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: log summary past a date
Replies: 15
Views: 4751

Thanks to all for their feedbacks. Using the feed backs from everyone. I wanted to do it this. I want to obtain summarized logs since the last run (I don't want to have a seperate file to maintain the id, would like to implement everything in this script or calling a datastage job to send the recent...
by mystuff
Mon Dec 24, 2007 10:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: log summary past a date
Replies: 15
Views: 4751

Then don't I have any option using to filter out using datastage CL utilities :(