× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> I have created a subfile, and within the subfile format, I have a date
> field.  Certain conditions cause the date to be *LOVAL, at which times the
> date is not applicable to the record being displayed.  What I have done is
> create an alpha field, into which I push the date if it isn't equal to
> *LOVAL, or *blanks if it is.

Another solution is DSPATR(ND), which can also be done as a program to
system field (no indicators):

A            FLDA          10   B 10  2TEXT('Generic input/output')
A                                      DSPATR(&FLDAATR)
A            FLDAATR        1   P

 * field attribute bit patterns
d NO              s              1a   inz(x'00')
no attrs
d RI              s              1a   inz(x'01')
reverse
d HI              s              1a   inz(x'02')
highlight
d UL              s              1a   inz(x'04')
underline
d ND              s              1a   inz(x'07')
non display
d BL              s              1a   inz(x'08')
blink
d NP              s              1a   inz(x'20')
non protect
d CS              s              1a   inz(x'30')
column sep
d PR              s              1a   inz(x'80')
protect

 * reset all attributes
c                   eval      FLDAATR = NP
 * reverse, blink
c                   biton     RI            FLDAATR
c                   biton     BL            FLDAATR

  --buck




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.