Regarding SortStage

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
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Regarding SortStage

Post by satheesh_color »

Hai,

We are using DS7.5 and with our server jobs ,while reading data from sortstage to sequential stage the data's are populated.but while reading data from sort stage to hashed file stage it gives an error as "Input column cannot populate an output column" and error number is "-100".

Our sample job's model:

SequentialStage--------------->SortStage------------------>Hashed fileStage


Regards,
Satheesh.R
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You have data type issues. Add Transformer stages and adjust/cleanup the data accordingly.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Your text specifies "reading data from sortstage to sequential stage" but your design shows something different.
Does the text file contain an empty line at the end? (I vaguely recall that -100 is the "end of data" code.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Hai Ray,

My question can we move records directly from sortstage to hashed File Stage.

1)SortStage-------->HashedFile Stage

(or)

2)SortStage------->Seq.FileStage------>HashedFileStage

While using 2nd option the job works correctly.But using 1st option it throws an error as "input col. cannot promote to an output.Col" and error -100.


Regards,
Satheesh.R
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No. The Sort stage does not read from disk. It requires an input link.
You can, however, specify the UNIX sort command as a filter in a Sequential File stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Hai ray,

Sorry for disturb you again ray:

1)Seq.FileStage------>SortStage----->Hashed.FileStage

2)Seq.FileStage------>SortStage---->Seq.FileStage----->HashedStage.

While using 2nd option the job works correctly.But using 1st option it throws an error as "input col. cannot promote to an output.Col" and error -100.


Regards,
Satheesh.R
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Do you have something against Transformer stages? What happens in approach number one when you add two of them into the job stream?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

satheesh_color wrote:Hai ray,

Sorry for disturb you again ray:

1)Seq.FileStage------>SortStage----->Hashed.FileStage

2)Seq.FileStage------>SortStage---->Seq.FileStage----->HashedStage.

While using 2nd option the job works correctly.But using 1st option it throws an error as "input col. cannot promote to an output.Col" and error -100.


Regards,
Satheesh.R
Not enough information. This question can only be answered with detailed knowledge about the metadata on each of the links, and complete and accurate reporting of error and warning messages.
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