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?
COMP fields
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: COMP fields
Use BINARY instead of COMP.
Re: COMP fields
DataMystic Support wrote:Use BINARY instead of COMP.
Like this?
10 WS-PROVIDER-ID PIC S9(9) USAGE BINARY.
Re: COMP fields
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.
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: COMP fields
Either should work.