Converting binary data

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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Converting binary data

Post by snassimr »

Hi !

I need to know how to convert data defined by DS as binary to varchar and smalldate time of MS SQL Server
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

snassimr,

in order to convert to a data type, you need to know what format the source {binary} datatype is in. Binary usually just means that it is not displayable; but that is not enough to know what conversion to apply.

Where is your data coming from and what is the datatype in that source system (i.e. coming from COBOL as a PIC S9(4) COMP-3, or coming from PL/1 as a quad precision floating point, etc.)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage doesn't define data types at all. DataStage server jobs don't even use data types! When you imported the table definition, it was the database server that asserted "Binary". You will need to research exactly what this means. Only then can you reasonably expect to be able to convert the data correctly.
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