|
<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>not handy, but here goes an /free-dds example ;)</DIV><DIV> </DIV><DIV>D fldx b 1 20CHECK(ER) CHANGE(20)</DIV><DIV>D 21 DSPATR(PC RI)</DIV><DIV>D nxtfld b 1 40</DIV><DIV>D 20 DSPATR(PC)</DIV><DIV> </DIV><DIV>-------</DIV><DIV>c dow not *inkc</DIV><DIV>c exfmt screen</DIV><DIV> </DIV><DIV>c if *in20</DIV><DIV>c exsr verifyfldx</DIV><DIV> </DIV><DIV>c if $errfldx</DIV><DIV>c eval *in20 = *off</DIV><DIV>c eval *in21 = *on</DIV><DIV>c end</DIV><DIV> </DIV><DIV>c iter</DIV><DIV>c end</DIV><DIV> </DIV><DIV>c enddo</DIV><DIV> </DIV><DIV>you could also use the hldfldx method mentioned earlier instead of CHANGE, if you wish.<BR></DIV><DIV>hope this helps</DIV><DIV> </DIV><DIV>rick<BR></DIV><DIV><FONT color=#990099>-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----<BR><BR></FONT>To: CN=RPG programming on the AS400/O=iSeries <rpg400-l@xxxxxxxxxxxx><BR>From: fkany@xxxxxxxxxxxxxxxxxx<BR>Sent by: rpg400-l-bounces@xxxxxxxxxxxx<BR>Date: 08/06/2003 03:36PM<BR>Subject: Re: CHECK(ER) and Field Validation<BR><BR><BR>> use the CHANGE keyword.....<BR><BR>Thanks Rick, I'll give that a try. Would you happen to have an example of<BR>using this method?<BR><BR>_______________________________________________<BR>This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list<BR>To post a message email: RPG400-L@xxxxxxxxxxxx<BR>To subscribe, unsubscribe, or change list options,<BR>visit: <a href="http://lists.midrange.com/mailman/listinfo/rpg400-l" target=blank>http://lists.midrange.com/mailman/listinfo/rpg400-l</a><BR>or email: RPG400-L-request@xxxxxxxxxxxx<BR>Before posting, please take a moment to review the archives<BR>at <a href="http://archive.midrange.com/rpg400-l" target=blank>http://archive.midrange.com/rpg400-l</a>.<BR><BR></DIV></FONT>
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.