How to split a single row of record in to two row of output

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

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

Post by chulett »

You got lucky.

Sequential files are by their nature multiple read but single write operations. This is not a 'DataStage thing'. More than likely you won't get any kind of error but the output would be... unpredictable... at best. Junk at worst case.

Use a larger data set. Run the job more than once. Unless you ensure that only one process is writing to the file at any given time - you will have problems.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Use a larger data set.
You are the man. :!: Now the result is screwed up. :evil:
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
jlock23
Participant
Posts: 18
Joined: Wed May 11, 2005 9:16 am

Post by jlock23 »

I agree with a previous poster. Use the Pivot stage. That's what it is designed to do (take one row and split it into mutiple rows). Much cleaner than the transformer split and sequential file merge option.
Post Reply