Output to a flat file of the following structure

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

Post Reply
koojo
Premium Member
Premium Member
Posts: 43
Joined: Sun Jul 11, 2004 1:30 pm
Location: USA

Output to a flat file of the following structure

Post by koojo »

Can we output to a flat file of the following format...If yes how do we do it...

1000 |James |510
2000 |Gary |360
3000 |Terry |760
20 |park Beach |California| USA|8887009
30 |South End |Florida | USA|9008675
4000 |Barry |890
:
:
:
:
(: colan stands for following the structure)
id | name | code
loc id| address| state | country | zip
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

what is ur job design ? u can go to format tab in out put file and set the delimiter as '|' manually , final delimiter none or end and null field value ''.
hi sam here
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not easily using a Sequential File stage. Only one record format is permitted. You can use multiple Sequential File stages each writing one record format then assemble the resultant files into one with a cat command. Or you could specify the table definition for the Sequential File as a single, large VarChar column and build your own record including delimiters.
Another possibility is to investigate using a Complex Flat File stage.

Etiquette Note
samsuf2002 please write in English.
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