Midrange News for the IBM i Community


Posted by: renojim
Green screen indicator issue
has no ratings.
Published: 08 Nov 2011
Revised: 23 Jan 2013 - 1611 days ago
Last viewed on: 22 Jun 2017 (3950 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Green screen indicator issue Published by: renojim on 08 Nov 2011 view comments(3)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Green screen indicator issue
Posted: 5 years 7 months 14 days 21 hours 42 minutes ago
Edited: Tue, 08 Nov, 2011 at 11:25:18 (2053 days ago)

Simple,  RI, HI and UL  = ND

You have DSPATR(RI)

You have DSPATR(HI)

and by default all input or "both" fields are DSPATR(UL)

hence, RI+HI+UL = ND  always has, always will

Use CHGINPDFT at the record-level and it will work.

Optionally, change it so that DSPATR(HI) doesn't show up when your DSPATR(RI) is being used (looks bad anyway).

Posted by: renojim
Premium member *
Comment on: Green screen indicator issue
Posted: 5 years 7 months 14 days 20 hours 36 minutes ago

Ah, thank you Mr. Cozzi.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Green screen indicator issue
Posted: 5 years 7 months 14 days 20 hours 13 minutes ago
Edited: Tue, 08 Nov, 2011 at 12:58:19 (2053 days ago)

If you have other I or B fields, you might want to do the CHGINPDFT at field level.

A            CTRTYP         2Y 0I  7 10 CHGINPDFT
A N40                                   DSPATR(ND)
A N99                                   DSPATR(HI UL)
A  99                                   DSPATR(RI)

There's another thing that looks odd here. DSPATR(ND) is conditioned; you always allow them to type in the field, but it's only hidden some of the time. Should it be DSPATR(ND PR)? If you do protect it when hidden, you may want to remove the other formatting by adding ' 40' to the conditions.