How to convert signed Decimal & signed int to EBCDIC for

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
harish_s_ampeo
Participant
Posts: 26
Joined: Tue Dec 18, 2007 6:31 am

How to convert signed Decimal & signed int to EBCDIC for

Post by harish_s_ampeo »

How to convert Signed Decimal to EBCDIC in datastage?

eg : -123.44 (convert to EBCDIC form)
-123 (Conver to EBCDIC Form)

Please help me out is ther any datastage built in function or do we need to write Routine? if so please give some clue?

Thanks in advance...

Thanks
Harish
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

You'll have to write routines to convert in that direction. DataStage includes routines that convert in the opposite direction, so it shouldn't be too difficult to adapt those to fit.

Mike
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

By the way... you're talking about packed decimal. It is neither ascii nor ebcdic. It is binary.

Mike
Post Reply