split in to many rows

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
satisht
Participant
Posts: 15
Joined: Tue Nov 07, 2006 4:41 pm

split in to many rows

Post by satisht »

hi

i have a job in which
i have a cff and there is no metadata for that and when i am trying to view the data it's not readable data and as it cff it is separated by commas(CSV),
and i want to put tha data after comma in next row and so on.
can u guys suggest which stage to use to split or we can do with a transformer

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

Post by chulett »

:? By 'unreadable' do you mean EBCDIC or perhaps packed decimal fields like COMP-3? If that's the case, why not use the CFF stage to read it? And if you don't have the metadata for the file - get it. You'll be on a wild goose chase without it.

If you really want to read each field as a record, you'll need to play a game with the field separators. It involves reading the file in and writing it back out to a new name with record separators between the fields, then when you read it back in one more time you magically get what you are seeking. There is a FAQ in the FAQ Forum that details this method - something like 'Creating one record from many' or some such. Should be easy enough to find.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply