IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dynamic Background color setting


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Maddipatla Rajasekhar

New User


Joined: 10 Mar 2009
Posts: 16
Location: Hyderabad

PostPosted: Mon Apr 25, 2011 11:22 am
Reply with quote

Hi,

Can anyone let me know how to set background color for a particular filed on CICS Screen dynamically??

Thank You..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 25, 2011 2:43 pm
Reply with quote

Perhaps if you explain what you mean by "dynamically" we can provide some help?
Back to top
View user's profile Send private message
Maddipatla Rajasekhar

New User


Joined: 10 Mar 2009
Posts: 16
Location: Hyderabad

PostPosted: Mon Apr 25, 2011 6:12 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 25, 2011 6:25 pm
Reply with quote

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
View user's profile Send private message
Maddipatla Rajasekhar

New User


Joined: 10 Mar 2009
Posts: 16
Location: Hyderabad

PostPosted: Mon Apr 25, 2011 7:28 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Apr 25, 2011 7:35 pm
Reply with quote

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
View user's profile Send private message
Maddipatla Rajasekhar

New User


Joined: 10 Mar 2009
Posts: 16
Location: Hyderabad

PostPosted: Tue Apr 26, 2011 9:03 am
Reply with quote

Hello Bill, Good Morning

Thanks for your post, its working icon_biggrin.gif

Have a nice day
Back to top
View user's profile Send private message
Maddipatla Rajasekhar

New User


Joined: 10 Mar 2009
Posts: 16
Location: Hyderabad

PostPosted: Tue Apr 26, 2011 9:11 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 26, 2011 9:43 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Apr 26, 2011 11:32 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top