|
Hello,
I have a display file containing a subfile which I use to show a calendar for one year on screen. Each month is one record (line) in the SFL, and the fields are named according to month days (DF_DAY01 to DF_DAY31).
I'm using one indicator per field to mark it DSPATR(RI) for the current day. This works like expected, but eats up 31 indicators.
Now I want to add "mark Sunday red". Can't use more indicators, and remembered there were "program to system fields". So I redefined the individual fields for one month, adding
COLOR(&CO_DAY01)
And after the SFL displayed fields, I added
A CO_DAY01 3A P
Won't compile: CPD7494, Keyword ignored because of error in list of values.
The DDS reference does not state if program fields are allowed or not for the COLOR keyword.
Note, I'm on V4R5, but I'm getting the same compile error on 7.3.
Found this one:
https://www.rpgpgm.com/2013/10/condition-display-fields-without.html
Seriously? Do I need to fiddle with hex values? Or do I overlook something in my field descriptions?
Thanks for your thoughts!
:wq! PoC
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.