View previous topic :: View next topic
|
Author |
Message |
Maddipatla Rajasekhar
New User
Joined: 10 Mar 2009 Posts: 16 Location: Hyderabad
|
|
|
|
Hi,
Can anyone let me know how to set background color for a particular filed on CICS Screen dynamically??
Thank You.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Perhaps if you explain what you mean by "dynamically" we can provide some help? |
|
Back to top |
|
|
Maddipatla Rajasekhar
New User
Joined: 10 Mar 2009 Posts: 16 Location: Hyderabad
|
|
|
|
Hello Robert,
Thank you for ur response.
Dynamically i mean using COBOL program
Iam wrintting a CICS-COBOL program, when ever an error occurs i want to set the background color of that particular field to red
Thank You..!! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you are wanting to merely change the background color of a field to red, you may not be able to achieve your goal using BMS. Remember that BMS means BASIC Mapping Support, and not everything that can be displayed on a 3270 terminal can be directly accessed using BMS. You may need to switch to a 3270 data stream (which is advanced CICS programming) to achieve the result you want.
You would be far better off -- and do it quicker -- by merely changing the text of the field to red, not the background. |
|
Back to top |
|
|
Maddipatla Rajasekhar
New User
Joined: 10 Mar 2009 Posts: 16 Location: Hyderabad
|
|
|
|
Hello,
I am getting mapfail error (Response code 36) while receiving the map, can somebody assist me to get rid of this error
Requirement:
-----------------
I want to throw an error message if the user presses enter key with out any data on the screen, meaing the first key hit will be the enter. I am getting mapfail Response code 36, but not the expected result
Thank you..!! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Set the attribute-byte of a field of your choice, to include FSET (IE: DFHBMASF = (ASKIP,NORM,FSET) or X'F1').
Review copybook "DFHBMSCA".
Bill |
|
Back to top |
|
|
Maddipatla Rajasekhar
New User
Joined: 10 Mar 2009 Posts: 16 Location: Hyderabad
|
|
|
|
Hello Bill, Good Morning
Thanks for your post, its working
Have a nice day |
|
Back to top |
|
|
Maddipatla Rajasekhar
New User
Joined: 10 Mar 2009 Posts: 16 Location: Hyderabad
|
|
|
|
Hi All,
I am receiving mapfail error (response code 36) while receiving the map for the second time without any data
Please suggest me how to get rid of that
Requirement:
---------------
As long as user presses enter key with out any data some error message has to be thrown on to the screen
But here i am getting the error message on the first hit only and when enter is hit for the second time im getting mapfail (responce code 36)
I set one of the attribute byte of a constant field to include FSET. For the first hit its working fine but not further
Thank You..!! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you receive a map without any data, you WILL get a mapfail condition. You can handle it via the RESP option, or you can use EXEC CICS HANDLE -- but do not expect to be able to get rid of the mapfail. Any time you receive a map in CICS, there is a chance you will get a MAPFAIL. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
set the fset and resend map w/your error msg explaining 'USER MUST ENTER SOMETHING'.
if you don't resend with an fset, the next return will be a mapfail.
if you resend,
the next return by the user
(regardless of data entered or not)
will be OK and you can check the fset.
and without reSENDing the screen (refresh the terminal)
the second attempt by the USER to enter some data would place any data entered
(you do want them to enter data or RETURN to the next menu item?)
in the wrong areas of your input to the cics module. |
|
Back to top |
|
|
|