Mandatory Field on Display File in AS400

95 pts.
Tags:
DDS
Display File
DSPATR
mandatory fiels
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ITTechPT
    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.
    95 pointsBadges:
    report
  • philpl1jb
    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
    51,365 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • ITTechPT
    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.
    95 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • ToddN2000
    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
    15,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following