80 pts.
 Mandatory Field on Display File in AS400
I have a display file with mandatory fields. Is there anyway that i can highlight those fields to bring attention to the user? The same behavior that AS400 makes when we attempt to execute a command without completing all the required parameters. Note: I have used DSPATR(HI) or DSPATR(RI) and they have different behaviors. Thanks.

Software/Hardware used:
ASKED: August 28, 2012  2:28 PM
  Help
 Approved Answer - Chosen by ITTechPT (Question Asker)

Review the DSPATR (Display Attribute) keyword for display files topic in the Information Center. Pay particular attention to the variation that uses program-to-system fields and Example 3 at the end of the topic. When you've finished the review, either code a test and try it, or come back here with questions. -- Tom

ANSWERED:  Aug 29, 2012  9:24 AM (GMT)  by ITTechPT

 
Other Answers:

Thank you for visiting ITKE.

We are happy to help you with solving specific IT questions, but need as
much information as possible to do so. Let us know about the problem you
are trying to solve, how you are approaching it and what work you’ve
done so far, and we can help guide you in the right direction.

Last Wiki Answer Submitted:  May 13, 2013  10:04 pm  by  ITTechPT   80 pts.
Latest Answer Wiki Contributors:  Chris Leonard   2,945 pts. , CharlieBrowne   33,695 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

They are not mandatory by the system, they are fields that I created on the DDS, and with a cobol program I evaluate if they are filled, if they are empty I give a warning message to the user. I would like to add the same thing that AS400 does when we leave some empty parameter (he highlights in green the all field area).Thanks.

 80 pts.

 

That would be DSPATR(RI)
But it sounds like you want to control it with an indicator..setting it to use the attribute when you first display the screen.
Phil

 44,630 pts.

 

Do you want them filled? Or do you simply want something other than a blank field? Are the fields always blank when you display them? — Tom

 110,115 pts.

 

Yes I want them filled by the user when he press the return key. When I display them for the first time they are blank.

 80 pts.

 

I’ll give yo a hint on a possible fix try looking into the CHECK( )  options available in DDS. Or try the VALUES( ).  The DDS manuals are always a big help.http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzakc/rzakcmst.pdf

 4,115 pts.