What does the data look like on the two machines??

-----Original Message-----
From: Nel Dennis [mailto:DNel3@OLDMUTUAL.com]
Sent: Monday, October 15, 2001 11:10 AM
To: 'COBOL400-L@midrange.com'
Subject: PIC S9(9) COMP field definition.

[ Converted text/html to text/plain ]

Hi All,

I have the following problem. We have a Cobol program running on the
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
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
M/F as this program gets used in all sorts of other programs.

Dennis Nel
Technical Consultant: AS/400
South Africa.

*       DNel3@oldmutual.com
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/cobol400-l
or email: COBOL400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.