Complex Flat File Stage - Source File Extensions ?

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
anu123
Premium Member
Premium Member
Posts: 143
Joined: Sun Feb 05, 2006 1:05 pm
Location: Columbus, OH, USA

Complex Flat File Stage - Source File Extensions ?

Post by anu123 »

Hi

I will be receiving EBCDIC file in BINARY format and multiple record types (Header,Rec1,Rec2,Rec3,Rec4 and Trailer).

So i have question what are all file extensions (Example : .dat, txt ...) the Complex Flat File Stage will accept to read.

Please help me ...
Thank you,
Anu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

File extensions are pretty much meaningless in the UNIX world. Regardless of extension, it will read 'flat files'... text files, if you will.
-craig

"You can never have too many knives" -- Logan Nine Fingers
anu123
Premium Member
Premium Member
Posts: 143
Joined: Sun Feb 05, 2006 1:05 pm
Location: Columbus, OH, USA

Post by anu123 »

Thanks for your reply

Is it possible to read .ebc or .bin files with CFF Stage ?
Thank you,
Anu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are they text files?
-craig

"You can never have too many knives" -- Logan Nine Fingers
anu123
Premium Member
Premium Member
Posts: 143
Joined: Sun Feb 05, 2006 1:05 pm
Location: Columbus, OH, USA

Post by anu123 »

Yes, i am receiving files as sourcefile.bin and sourcefile.ebc
Thank you,
Anu
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The suffixes are indicative of the contents only. Nothing is enforced by them. Provided you have good metadata, you should be able to read them with Sequential File stage (if the structure is simple enough) or Complex Flat File stage.

EBCDIC is simply another way of encoding characters, as ASCII is.

I'd be a bit more careful with ".bin" suffix, which suggests "binary" data. But it should still be possible to read the data.
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