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



You might want to use the %subst keyword instead?  Something like this:

C        if     %subst(flag: 5: 1) = 'Y'
C        exsr   PrintSubRoutine
C        endif


Yuriy Veletnik wrote:
I have a file:

User      User

ID         Flag

usr1      YNNNYNNYYY

usr2      NYNYNNYYNNN

usr3      NYNNYYNYYY

I need to create a report that will print all the records with 'Y' in
position 5 of User Flag field. I'm new to RPG, understand that I need to
use runtime array, having problems with details. Any help greatly
appreciated.

Yuriy Veletnik

AS/400 Administrator

Trade Associates Group, ltd

1730 W. Wrightwood

Chicago, IL 60614

773.871.1300 x130



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.