Page 1 of 1

COMP fields

Posted: Tue Dec 08, 2009 7:42 am
by CareEv
We have had no problem with EBCDIC conversions with COMP-3 fields, but our customer threw us a curve today and sent a copybook with fields that look like this:

10 WS-PROVIDER-ID PIC S9(9) USAGE COMP.

So COMP instead of COMP-3. TextPipe doesn't complain, but these fields are not converting properly. Are COMP fields understood by TextPipe?

Re: COMP fields

Posted: Tue Dec 08, 2009 9:42 am
by DataMystic Support
Use BINARY instead of COMP.

Re: COMP fields

Posted: Tue Dec 08, 2009 10:25 am
by CareEv
DataMystic Support wrote:Use BINARY instead of COMP.

Like this?

10 WS-PROVIDER-ID PIC S9(9) USAGE BINARY.

Re: COMP fields

Posted: Tue Dec 08, 2009 11:13 am
by CareEv
CareEv wrote:
DataMystic Support wrote:Use BINARY instead of COMP.

Like this?

10 WS-PROVIDER-ID PIC S9(9) USAGE BINARY.

Nevermind. It needs to look like this:

10 WS-PROVIDER-ID PIC S9(9) BINARY.

Re: COMP fields

Posted: Tue Dec 08, 2009 12:00 pm
by DataMystic Support
Either should work.