Page 1 of 1

Can we read a binary file in DataStage.

Posted: Wed Apr 01, 2009 3:39 am
by ItsVikas
Can we read a binary file in any version of Datastage.
If someone know then please let me know

Posted: Wed Apr 01, 2009 7:52 am
by chulett
Welcome. :D

Please verify exactly what it is you mean by a 'binary file'. Sometimes people have asked this question for packed fields in an EBCDIC file, for instance, so let's make sure we're all on the same page before we go too much further. And the more details you can provide about what you need to do, the better your answers will be.

Also, suggest you do an Exact Search of the forums here for "binary" and see if anything useful comes up.

Posted: Wed Apr 01, 2009 1:55 pm
by ccotton
Either way you can still read binary files through a complex flat file stage whether packed or not. You could also use a sequential file stage and make it a fixed width file. then unpack the data yourself in a transformer if you need to. If not just convert the data to ASCII in a transformer. Easiest way in my opinion for either is through a complex flat file stage. Good luck!

Posted: Wed Apr 01, 2009 3:27 pm
by ray.wurlod
Are you on the same project as theppaks, who posed the very same question in the QualityStage forum?

Posted: Thu Apr 02, 2009 2:31 am
by thepakks
Yes we are in same project.