COMP fields

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
CareEv
Posts: 3
Joined: Tue Dec 08, 2009 7:36 am

COMP fields

Post 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?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: COMP fields

Post by DataMystic Support »

Use BINARY instead of COMP.
CareEv
Posts: 3
Joined: Tue Dec 08, 2009 7:36 am

Re: COMP fields

Post by CareEv »

DataMystic Support wrote:Use BINARY instead of COMP.

Like this?

10 WS-PROVIDER-ID PIC S9(9) USAGE BINARY.
CareEv
Posts: 3
Joined: Tue Dec 08, 2009 7:36 am

Re: COMP fields

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: COMP fields

Post by DataMystic Support »

Either should work.
Post Reply