Additional text in the output of Execute Commant Stage

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
sumitgulati
Participant
Posts: 197
Joined: Mon Feb 17, 2003 11:20 pm
Location: India

Additional text in the output of Execute Commant Stage

Post by sumitgulati »

Hi,

I have a sequencer job that has three stages that are called in series
Stage 1: Job Activity Stage - It calls a multiple instance job (Job1)
Stage 2: Execute Command Stage - It executes a unix command.
Stage 3: Job Activity Stage - It calls another job (Job2) based on the output of unix command in previous stage.

I am facing strange problem. At times the output of stage 2 is appended by the text mentioned below
"[4444511] Done : DSD.RUN Job1.38 0/50/1/0/0"

Because of this the job called in Stage 3 does not get triggered as the output from the Stage2 does not match the required condition.

I am not sure why is this additional text coming intermittently.

Whenever I face this issue I simply run the job again without making any change to the code and it works fine.

Could you please through some light on this.

Thanks in advance for your help
-Sumit
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Done : DSD.RUN indicates a run of a server job. Now why this is appending to your Execute Command Stage can be figured out only by knowing what exactly your are doing with Execute Command Stage.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
sumitgulati
Participant
Posts: 197
Joined: Mon Feb 17, 2003 11:20 pm
Location: India

Post by sumitgulati »

JoshGeorge wrote:Done : DSD.RUN indicates a run of a server job. Now why this is appending to your Execute Command Stage can be figured out only by knowing what exactly your are doing with Execute Command Stage.
Thank you for your reply

In the Execute Command Stage I am running the following code:

grep 'TRAILER' #$FilePathDir#/#FileName# | wc -l

$FilePathDir is an environment variable for file path directory
FileName is a job parameter for File Name

This code will tell me if there is a record in the file that has text 'TRAILER'. If it is present then the output of the command would be the count of records that have text 'TRAILER'. If there are no such records the command should return zero.

The additional that I am talking about does not always get appended to the output of the command. It happens only sometimes.
sumitgulati
Participant
Posts: 197
Joined: Mon Feb 17, 2003 11:20 pm
Location: India

Post by sumitgulati »

Hi All, any suggestions on this issue.

Your help would greatly appreciated.

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

Post by chulett »

:? Looks like output that would normally be in your &PH& directory. Best to call your Support provider and ask them, I would think.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sumitgulati
Participant
Posts: 197
Joined: Mon Feb 17, 2003 11:20 pm
Location: India

Post by sumitgulati »

Thank you Chulett.
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

Hey, I didn't know output of the command was available in Execute Command Stage! Only return code for the trigger.
Where can I find output?
sumitgulati
Participant
Posts: 197
Joined: Mon Feb 17, 2003 11:20 pm
Location: India

Post by sumitgulati »

ivannavi wrote:Hey, I didn't know output of the command was available in Execute Command Stage! Only return code for the trigger.
Where can I find output?
For Execute Command activity there is an activity variable "$CommandOutput" that stores the output of the command.
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

Thanks!
How stupid can I be? I know I saw it before (never used it) in the "Insert parameter value" list of any subsequent job activity!
:oops:
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

Thanks!
How stupid can I be? I know I saw it before (never used it) in the "Insert parameter value" list of any subsequent job activity!
:oops:
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

This is not my day. Now I post duplicate posts
:evil:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I have seen something similar to this in the past, where DataStage (UniVerse) was running out of file units in the rotating file pool, and data destined for one file unit was misdirected to another. Were there very many files open at the time?

Does the problem occur reliably? If not, is it only at busy times and not at quiet times?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply