Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic Background color setting

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Dynamic Background color setting
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: 7904
Location: Bellevue, IA

PostPosted: Mon Apr 25, 2011 2:43 pm    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Mon Apr 25, 2011 6:25 pm    Post subject:
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    Post subject: MAPFAIL while receiving map
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Apr 25, 2011 7:35 pm    Post subject: Reply to: Dynamic Background color setting
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    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Tue Apr 26, 2011 9:43 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XFACILIT class setting for Fault Anal... egrove IBM Tools 2 Thu Aug 11, 2016 8:02 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us