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



Actually you can substring, like this:

  If (%subst(usr1:5:1) = 'Y');
   // Do your thing.
  endif;


-Bob Cozzi
www.iSeriesTV.com
iPod your industry news instead of reading it.
Coming July 18, 2006
Ask your friends to tune into iSeriesTV.com

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Yuriy Veletnik
Sent: Thursday, July 20, 2006 3:02 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: testing a value in specific position of the field

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

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.