Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What option is specified in the SEND command to send only the unnamed fields on to the screen?

1 Answers   IBM,


Explain the difference between link xctl?

0 Answers  


What?s the CICS command used to access current date and time?

1 Answers  


What CICS command would you use to read a VSAM KSDS sequentially in ascending order?

1 Answers  


I want to know what exactly the STOPPER field does with example. Please help.

1 Answers  


What are the commands used to gain exclusive control over a resource (for Ex a Temporary storage queue.)?

3 Answers  


When you do a START, what will the value of EIBCALEN?

2 Answers   IBM, Satyam, Xansa,


What is trigger level in the context of TDQs?

2 Answers   IBM,


explain abt types of maps? and explain

1 Answers  


WHAT ARE THE VERBS IN CICS EQUAL TO ACCEPT,DISPLAY,VALUE?

2 Answers  


what are transient data sets defined to cics?

0 Answers   IBM,


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

0 Answers  


Categories