Decimal Compact / EBCDIC handling

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
przytula
Participant
Posts: 27
Joined: Wed Apr 14, 2004 1:31 am
Location: Brussels Belgium
Contact:

Decimal Compact / EBCDIC handling

Post by przytula »

I want to manipulate some fields in a before routine, reading the input file and creating output files. These fields are DEC Compacted EBCDIC.
Any idea how these can be checked, for specific values and put back another value to this fileld, that is still compatible with EBCDIC DEC COMP-3
The problem is that this field contains EBCDIC space (40) which is accepted as valid DEC COMP3, and this I want to transform to regular 00
Any sample/help appreciated.
Best Regards, Guy Przytula
Best Regards, Guy Przytula
thirupri
Premium Member
Premium Member
Posts: 40
Joined: Wed Sep 17, 2003 3:41 am
Location: Saudi Arabia
Contact:

Post by thirupri »

Use the Complex File Format DataStage, specify the input file as EBCDIC for the NLS setting. Then you can use OConv(Iconv()) function in transformation to convert to decimal. Hope this will work.

Regards,
Best Regards,
Thiruma Valavan
Post Reply