|
Hi Joe, et.al. - >Date: Tue, 7 Mar 2000 14:10:44 -0600 >From: "Joe Teff" <joeteff@earthlink.net> >Subject: Re: How about in INC opcode ... >The VA/RPG syntax would be fine > > C Eval %setatr('format':'field':'ReverseImage')=*On > >But, like too many have already stated - don't hold your breath waiting for >5250 to change. A capability similiar to this already exists. I don't know at what version it started, but DSPATR can accept a field name for some of the display attributes. See http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/db2/rbafpmst2 67.htm for a list of the supported and unsupported attributes. Essentially all of the output-only attributes plus protected can be specified, input attributes except protected cannot be specified. In particular, position cursor cannot be specified, which is a pain. But it's a step in the right direction. Here is real-life DDS ... A #MAPRD#01 9 0B 10 16CHECK(RB) EDTCDE(Z) A DSPATR(&@MAERR#01) A 71 81 DSPATR(PC) ... A @MAERR#01 1 P There are 40 of the above sets of fields. Here is real-life RPG IV ... d #dspul c const(x'24') d #dspulri c const(x'25') ... d ds d @maerr# 1 40 dim(40) d @maerr#01 1 1 d @maerr#02 2 2 d @maerr#03 3 3 ... d @maerr#38 38 38 d @maerr#39 39 39 d @maerr#40 40 40 ... c eval @maerr# = #dspul This sets all of the 40 fields to underline. ... c eval @maerr#(@x) = #dspulri c eval *in($$$rowind(@x)) = *on c eval *in($$$colind(@x)) = *on @x points to an element in the array of product numbers which has an error. The first line sets the field attribute to underline and reverse image. This is very close what you are asking for. No indicators involved. Since position cursor is not supported, the next two evals call subprocedures in the program to turn on indicators in a matrix pattern. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.