|
GPRTSM is a PF field. After the snippet of code the record is written -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken Slaugh Sent: Thursday, February 22, 2007 10:20 AM To: RPG programming on the AS400 / iSeries Subject: RE: Minor issue with subst You didn't include the code for it but hopefully you are initializing the GPRTSM field.... Assuming that these lines of code are run multiple times during execution, once the GPRTSM field is set to 'X' it would stay that way. Hth, Ken Slaugh (707) 795-1512 x118 Director of Technical Development Chouinard and Myhre, Inc. http://www.cm-inc.com/ -----Original Message----- From: rpg400-l-bounces+ken.slaugh=cm-inc.com@xxxxxxxxxxxx [mailto:rpg400-l-bounces+ken.slaugh=cm-inc.com@xxxxxxxxxxxx] On Behalf Of Douglas Palme Sent: Thursday, February 22, 2007 8:06 AM To: 'RPG programming on the AS400 / iSeries' Subject: Minor issue with subst One of our customer files has a field for customer flags that has a length of 64. Each position can be turned on with an X in that position. I am having to modify an old RPG III program that checks this flag position and I must doing something wrong because I am getting far more records than I should be. Here is the relevant code and my explanation of what I am doing: C MOVE *BLANKS FLGFLD 1 C GCUSNR CHAINCORCSTEX 37 C *IN37 IFEQ *OFF C 1 SUBSTCXFLGS:28 FLGFLD C FLGFLD IFEQ 'X' C MOVE 'X' GPRTSM C ENDIF C ENDIF I need to make sure that for each pass through the primary file I am working with a blank FLGLD (which is just my own internal variable) and only if CXFLGS position 28 has an 'X' in it do I want to update my work file, although I do not have a line that moves *blanks to it if not equal I did not think that would have been necessary. Does anyone see any issue with the code as it is written? ************************************************************************ **** This transmission may contain information that is privileged, Confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. ************************************************************************ **** -- 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. ________________________________________________________________________ _____ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please contact mailto:smtpalerts@xxxxxxxxxx ________________________________________________________________________ _____
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.