How to handle multi delimiter (flat file) in DataStage ?

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
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

How to handle multi delimiter (flat file) in DataStage ?

Post by thirupathireddy.gankidi »

a flat file contains the data..the data of the flat file having more than one delimiter..i need to load tht flat file in source... can any one give solution,,,,,,,,,,,,,,

FOR EXAMPLE:
i have text file,The file contains the data like

ord_no ord_name
1,a
2,b
3,c

in this file i used two delimeters like(comma and space)..

my prob is i need to load sequential file in to a source..


Thanks in advance
Thiru
siva.dwhbi
Participant
Posts: 7
Joined: Tue Aug 23, 2011 11:39 am
Location: Chennai

Post by siva.dwhbi »

Can you bit elaborate what is that source?
Sivakumar Ganesan
-----------------------
Chennai, TN,India
suse_dk
Participant
Posts: 93
Joined: Thu Aug 11, 2011 6:18 am
Location: Denmark

Post by suse_dk »

Is it only in the first line where you have the column names /header that you have a space delimiter?
_________________
- Susanne
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Turn on the option to skip the header record, I'm assuming you don't actually need it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post by thirupathireddy.gankidi »

siva.dwhbi wrote:Can you bit elaborate what is that source?

my source is a flat file..
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post by thirupathireddy.gankidi »

my source is a flat file..yah it is in the header only
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... skip it.
-craig

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