|
Whilst I didn't go and name all the indicators because of time constraints, I did however use you second suggestion. Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 709-576-8132 rpower@xxxxxxxxxx http://www.stjohns.ca/ ___________________________________________________________________________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill michael@xxxxxxxxxxxxxxxxxx Sent by: rpg400-l-bounces@xxxxxxxxxxxx 2006/01/09 12:06 PM 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: Free Form question? You can do it by associating the *IN array with a pointer, and then moving '0' to the appropriate place using pointer math, but I don't think that's a good idea. First, I think it's better to have named indicators. CustNotFound is more meaningful that *IN26 being *OFF. Second, regardless of how you name your indicators, if you have seperate lines to turn them off, the next programmer won't have to count '0's to see what indicators are being turned off. > -------- Original Message -------- > Subject: RE: Free Form question? > From: RPower@xxxxxxxxxx > Date: Mon, January 09, 2006 10:26 am > To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> > > One more question, > I have asking these, but I've searched for the answer and can't seem to > find it, but I have some code I'm converting over to free form and I want > to try and remove as many of the /free /end-free as possible cause I just > don't like them... > > Recall how we used to use: > Move '000000' *IN(26) > to set off the indicators *IN26 thru *In31. > I tried: > *IN(26) = '000000'; > but it doesn't like it. > > Ron Power > Programmer > Information Services > City Of St. John's, NL > P.O. Box 908 > St. John's, NL > A1C 5M2 > 709-576-8132 > rpower@xxxxxxxxxx > http://www.stjohns.ca/ > ___________________________________________________________________________ > Success is going from failure to failure without a loss of enthusiasm. - > Sir Winston Churchill > > > > > <Matt.Haas@xxxxxxxxxxx> > Sent by: rpg400-l-bounces@xxxxxxxxxxxx > 2006/01/09 11:42 AM > Please respond to > RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> > > > To > <rpg400-l@xxxxxxxxxxxx> > cc > > Subject > RE: Free Form question? > > > > > > > Manual sez: Use "FOR" in free form. There are examples in the manual. > > Matt > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of RPower@xxxxxxxxxx > Sent: Monday, January 09, 2006 10:07 AM > To: RPG programming on the AS400 / iSeries > Subject: Free Form question? > > How does one code: > c do 6 > in free form? > > Ron Power > Programmer > Information Services > City Of St. John's, NL > P.O. Box 908 > St. John's, NL > A1C 5M2 > 709-576-8132 > rpower@xxxxxxxxxx > http://www.stjohns.ca/ > ________________________________________________________________________ > ___ > Success is going from failure to failure without a loss of enthusiasm. - > > Sir Winston Churchill > -- > 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. > > > -- > 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. > > > -- > 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.