How can we code a program such that we will never get a
MAPFAIL error?



How can we code a program such that we will never get a MAPFAIL error?..

Answer / rakesh

Normally MAPFAIL just indicates that no data has ben entered in any of the fields, and thus the MDT-bit is not set in the fileds attribute-byte. CICS issues a "Read Modified" 3270-command, and receives data from fields that has the MDT-bit set. When you get MAPFAIL, this just tells you that no field has been modified, an really is "normal".
In program logic you have to check if data has been entered in mandatory fileds. The result may vary, and is a result of users action. Zero or many fileds may have been modified.
In your program logic you should FIRST check for invalid PF/PA/Clear-keys, and ONLY do a Receive Map after the check. There is no need to do a Receive Map if the user pressed the Clear or a PA-key, as an example. The EIBAID contains the value for the key pressed to initiate this pseudoconversation - even without a Receive Map.
If you use Resp Option, coding RESP(ws-variable) in your Receive Map, you can eliminate the Mapfail problem.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More CICS Interview Questions

why we code ACCUM parameter in cics send time

1 Answers  


How to build up LU 6.2 communication?"

1 Answers   IBM,


Explain the difference between cics program control table (pct) and cics processing program table (ppt)?

0 Answers  


In case if the user inputs the characters which turn out to be uppercase, then what is the procedure to close that condition?

0 Answers  


Every map is categorized into multiple fields, and there are three common working storage fields present for each of these respective fields. Mention those?

0 Answers  






How will you place cursor on a field called ?EMPNO?.

2 Answers  


Can you define mdt?

0 Answers  


Which commend used for terminating a browser operation?

0 Answers  


Can you define attribute byte?

0 Answers  


What are the 3 common ways to create maps?

1 Answers   IBM,


Thru web page we have triggered the transaction, how can we come to know that whether it has hit the mianframes or not?

2 Answers  


hi,what is the module? how many modules in mainframe based banking projects

0 Answers  


Categories