Yes and no.
When using CICS, you can't use the display statement. But I can write them
to the error line on the map, and send the map immediately, which I have
done. When I do this, the contents of both fields match exactly.
-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Lindstrom
Sent: Monday, January 28, 2008 9:27 AM
To: COBOL Programming on the iSeries/AS400
Subject: Re: [COBOL400-L] CICS Problem
Can you display the contents of ACEMPNOI and WS-COMM-BEGIN after the ELSE
just to confirm what you think is true?
Scott Lindstrom
Unix and AS/400 Technical Support
847 482 7602
<loravara@comcast
.net>
Sent by: To
cobol400-l-bounce "'COBOL Programming on the
s@xxxxxxxxxxxx iSeries/AS400'"
<cobol400-l@xxxxxxxxxxxx>
cc
01/27/2008 08:05
PM Subject
[COBOL400-L] CICS Problem
Please respond to
COBOL Programming
on the
iSeries/AS400
<cobol400-l@midra
nge.com>
I'm a very new CICS programmer, and I'm running into a problem.
I'm trying to compare two data items. Both are PIC X(09). Both will
contain numbers, though.
At one point in the CICS program, I have:
IF ACEMPNOI = WS-COMM-BEGIN
NEXT SENTENCE
ELSE
PERFORM 1100-START-BROWSE THRU 1100-EXIT.
The problem is, the Else branch always triggers when the program reaches
this statement, as though the two data values are different, even when I can
verify that they are not.
ACEMPNOI is the field that receives the account number from the CICS map.
WS-COMM-BEGIN is the field in the DFHCOMMAREA that contains the last
ACEMPNOI that was searched on. I save it to this COMMAREA data item
whenever the program executes a successful STARTBR.
What am I doing wrong here?
Any advice would be appreciated.
Thanks.
Lora
--
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/cobol400-l.
--
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx 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.