× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a question. For the last few years we have been coding chain 
statements like this:

abc chain file1
    if %found(file1) and not %eof(file1)

Do we not have to use the %eof on chains? I know you have to use them on 
reads? Any help would be appreciated. thank you

Jeff Williams


On Thu, 12 Oct 2006 00:14:50 +0800, Joseph Pascoguin wrote
Hi,
In this below example, is there anyway I can combine chain 
statements and other statements, I see lots of similarities, can 
some one advise please? C                   Eval      Rst@rc = 
MER#PE C     Rst@rc        Chain     MMF3REST C                   If 
       %Found(ABCREST) C                   EXSR      TEST C          
         EXSR      TEST1 C                   EVAL      OUTXP = 
 %trim(%char(MER#PE)) C                   Eval      MERNBR = MER#PE 
C     MERNBR        Chain     SFILE C                   If       
 %Found(SFILE) C                   EXSR      TEST C                  
 EXSR      TEST1 C                   EVAL      OUTXP = 
 %trim(%char(MER#PE))

Warm Regards,
JoeP

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's 
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-- 
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.


--
WOW! Homepage (http://www.wowway.com)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.