|
Thanks guys. This seems to work best for me seeing as I have a lot of indicators. "Richard ECUYER" <recuyer@xxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 2005/06/22 10:32 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc Subject Re: RPG Free Format question i what i use in this case (especially if i have a lot of indicators) is a for loop. for i = 20 to 24 ; *In(i) = *off ; Endfor ; I find it more readable. only my opinion. ----- Original Message ----- From: "Jeffrey Young" <cooljeff913@xxxxxxxxx> To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> Sent: Wednesday, June 22, 2005 2:21 PM Subject: Re: RPG Free Format question > Try defining the indicators on a named data structure based on a pointer to *IN. > Then define a field that overlays the indicator structure for 4 bytes starting at pos 20. > Then just CLEAR the field. Indicators will be reset. > > ex: > Indicator_ds DS Based(Ind_Ptr) > Ind20_23 4A Overlay(Indicator_Ds : 20) > > Ind_Ptr S * Inz(%Addr(*In) > > /Free > . > . > . > Clear Ind20_23; > or > Ind20_23 = *Zero; > > /End-Free > > > PHarte@xxxxxxxxxx wrote: > Is there a function in Free Format RPG that allows me to turn off more > than one indicator in a single statement similar to the > c movea '0000' *in(20) > > Does anybody know which is the better of the Free Format RPG books to > purchase? > > > Thanks, > Pat. > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > Jeff Young > Sr. Programmer Analyst > Dynax Solutions, Inc. > IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 > IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3 > > IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3 > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > >
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.