Row Splitter

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
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Row Splitter

Post by Kirtikumar »

Hi,

I am using Row splitter in one DS job. According to the document, any columns that are defined on both, the input link and output link, are passed straight through the stage.

But jobs is as follows:

Code: Select all

Seq. File ---> Row Splitter ---> Seq. file
The input link has 2 columns :

Code: Select all

RECTYPE      Char  1
DATA         Char  300
I am splitting the column DATA and has been mentioned in the stage. The output link has meta data :

Code: Select all

RECTYPE      Char  1
FNAME        Char  150
LNAME        Char  150
According to document the RECTYPE should carried as it is and DATA columns should be split.
But here, RECTYPE is not carried forward. Though all RECTYPE in input seq. file are populated, in output file these fields are blank.

Any inputs will be appreciated.
Regards,
S. Kirtikumar.
yannish
Charter Member
Charter Member
Posts: 23
Joined: Mon Dec 29, 2003 7:38 am
Location: Finland, Northern Europe

Post by yannish »

Hi Kirti,

try moving the pass through columns to the end of the output column definitions and in the Output/Format-page check "Missing columns action" to be None. That should work.


Cheers,

Janne
Finland

PS. The sun has been seen here too ;)
Precious
Charter Member
Charter Member
Posts: 53
Joined: Mon Aug 23, 2004 9:51 am
Location: South Africa
Contact:

Post by Precious »

yannish wrote:try moving the pass through columns to the end of the output column definitions and in the Output/Format-page check "Missing columns action" to be None. That should work
I have tried the suggested solution, and it works. :D

:?:
Is there any reason that the pass thru columns have to be at the end? Is there no way to implement this with the pass thru columns at the beginning?

Thanx
Precious

Mosher's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, you'd be out of a job.
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

Hi Janne,

I am working in DS 7.1 Server. I checked Output-Format page. But this option was not there. Is this option available only in 7.5?

Regards,
Kirtikumar.

PS: Its summer here and temp has been around 40. :(
yannish wrote:Hi Kirti,

try moving the pass through columns to the end of the output column definitions and in the Output/Format-page check "Missing columns action" to be None. That should work.


Cheers,

Janne
Finland

PS. The sun has been seen here too ;)
yannish
Charter Member
Charter Member
Posts: 23
Joined: Mon Dec 29, 2003 7:38 am
Location: Finland, Northern Europe

Post by yannish »

It should be there. I just checked my DS 7.1. On the bottom left corner...

Precious: At least I haven't managed to put the passthrough columns in the begining of the output columns. I think it is the way row splitter works that it first splits the column specified and only after it runs out of data in that column it starts to look for other columns. But then again it's quite simple transformer stage to reorder the columns so I don't see big problem there. But I have to say it would be a nice feature to have the mapping of columns made a bit easier :idea:

Janne
Post Reply