--
While the other methods of changing the copybook (and programs) from COMP
to BINARY, in ILE COBOL you can use an undocumented compile option
COMPASBIN to accomplish this without modifying the code.  In general, we
are converting all COMP fields to BINARY on all platforms.

Schaefer ONeill

At 12:09 PM 10/15/01 , you wrote:

>[ Converted text/html to text/plain ]
>
>Hi All,
>
>I have the following problem. We have a Cobol program running on the Mainframe
>with the following COPYBOOK in the Working Storage Section;
>
>07      R-CLIENT                PIC S9(9) COMP.
>07      D-FROM-MTH      PIC S9(4) COMP.
>07      D-FROM-DD       PIC S9(2) COMP.
>
>We have written some code on the AS/400 which does a call via "ECS" to get
>data from the Mainframe via this COPYBOOK.
>
>I have captured the Copybook on the AS/400 exactly the same as the COPYBOOK on
>the Mainframe. BUT when I access the data it is different on the AS/400!! );-
>
>Should I be defining the fields differently on the AS/400? If so how?
>
>Any help would be greatly appreciated as our whole project is dependant on
>this piece of code working. (We would prefer not to change the copybook on the
>M/F as this program gets used in all sorts of other programs.
>
>Thanks
>Dennis Nel
>Technical Consultant: AS/400
>South Africa.
>
>*       DNel3@oldmutual.com

Schaefer P. ONeill
7912 O'Neal Road
Raleigh, NC  27613-1047
(919)-571-0046 (voice)
(919)-571-0048 (fax)
(877)-668-7255 (toll free)
--



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.