View previous topic :: View next topic
|
Author |
Message |
jagadeesanm87
New User
Joined: 20 Jan 2011 Posts: 14 Location: Mumbai, India
|
|
|
|
I have used cics send map to display the output values in the screen using these commands
03 NAME1I PIC X(40).
03 CCONTAL COMP PIC S9(4).
03 CCONTAF PICTURE X.
03 FILLER REDEFINES CCONTAF.
04 CCONTAA PICTURE X.
03 CCONTAI PIC X(2).
03 CRASGTL COMP PIC S9(4).
03 FILLER PICTURE X(3).
03 CCONTAO PIC X(2).
EXEC CICS SEND
MAP ('RM9P145')
ERASE
CURSOR
END-EXEC.
and when I receive it, I find the values spaced out and it is not happening with all the cases.
EXEC CICS RECEIVE
MAP('RM9P145')
END-EXEC.
When I keep pressing enter hurrying from every cics screen the values of this screen (RP9P145) gets spaced out when it reaches here gets spaced out.When I receive I find junk values some times in the input fields in CCONTAI.
When I do press enter with some breaks i get the values properly in CICS RECEIVE.
Now, why does CICS RECEIVE doesnot work fine when I hurry up pressing enter continuously without breaks?
Please give shed some light on this problem
Thank you |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
just pressing enter without changing anything on the screen
(spacing or typing a character into a field)
means that there is no data returned.
do you check the resp code after the receive? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
It sounds like you need to work on your map definition -- research the MDT (Modified Data Tag) and its implications. |
|
Back to top |
|
|
jagadeesanm87
New User
Joined: 20 Jan 2011 Posts: 14 Location: Mumbai, India
|
|
|
|
I have defined the map with FSET so I believe MDT will always be set.
CCONTA DFHMDF POS=(06,40),LENGTH=02,ATTRB=(FSET,NUM),
INITIAL='__'
please forgive if I'm wrong |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Question 1: do you move LOW-VALUES to the output map before sending the first time?
Question 2: do you use FSET on every field in the map? FSET is a field value, so if you don't have it on a field and the field contents are not changed then that field's data is not returned. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Define FSET to a map field ATTRB which doesn't have a label, such as static map heading or literal. The smaller the map field, the better.
So, your ATTRB will probably be something like (ASKIP,NORM,FSET) or (ASKIP,BRT,FSET).
Usually this will prevent a MAPFAIL, but, your program needs to be coded to handle a MAPFAIL, regardless.
Bill |
|
Back to top |
|
|
jagadeesanm87
New User
Joined: 20 Jan 2011 Posts: 14 Location: Mumbai, India
|
|
|
|
Hi Robert, Bill,
Thanks for your replies,
I have populated commarea fields to the output map fields which are editable and used FSET attribute for the same.
Most of the fields are modifiable with attribute either (FSET) or (FSET,NUM)
When the user keeps pressing Enter will CICS RECIEVE fail after many CICS RECIEVE commands in previous programs
Say for ex, If an user hurry up pressing enter 10 times, Is it sure that all the 10 times the maps will recieve without fail? where in all the maps uses MAP SEND and have fields with attributes FSET.
Thank you |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
there is no INTO or SET, so READ the send and receive MAP commands in the manual. |
|
Back to top |
|
|
|