2

I am using Talend to convert EBCDIC file using Cobol copy book representation of EBCDIC file. but i am unable to find out Half width and Full width representation of EBCDIC character

please suggest.

UmeshR
  • 803
  • 1
  • 9
  • 16
  • 1
    What do you mean by half width characters ???. Ebcidic is a 1 byte character set !!. Do you mean there is Packed-Decimal data. Packed decimal is more common but not unique to Mainframe data. – Bruce Martin Sep 12 '12 at 22:23
  • Are you talking about full/half-width characters such as the Japanese language has on computers? – Jeff B Sep 27 '12 at 21:57

3 Answers3

0

You can find documentation for one of the most widely used code pages for EBCDIC at Wikipedia. I am unfamiliar with the idea of half width vs. full width EBCDIC. Perhaps the EBCDIC 930 encoding for halfwidth Katakana is what you have in mind?

David Gorsline
  • 4,933
  • 12
  • 31
  • 36
0

Are you talking about double-byte character sets? They use a shift-in and shift-out character x'0e' and x'0f' (if I recall correctly). You will need to parse the fields as a stream and, literally, shift into double byte mode when you hit the x'0e' and return to single byte mode when you hit the x'0f'.

Joe Zitzelberger
  • 4,238
  • 2
  • 28
  • 42
  • could you please explain more about this approach, i have EBCDIC file which has full width packed decimal data which COMP-3 in cobole copy book not able to parse. – UmeshR Aug 29 '13 at 05:12
0

I am using cobol copy book to read the EBCDIC, so COM-4 is right data type for reading Half width as well as Full width data. COM-3 is used to read packed decimal values

UmeshR
  • 803
  • 1
  • 9
  • 16