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



IIRC, when reading a file /sequentially/ the INFDS only gets updated when a BLOCK of data gets transferred.

Overriding the file to not do blocking before calling the RPG program /or/ using the POST operation code (with the file name in Factor 2) in the RPG program will force it to update the INFDS for each record read.

- sjl


"Darryl Freinkel" wrote in message news:mailman.9758.1352933075.2683.midrange-l@xxxxxxxxxxxx...

It's been a long time. I don't have any guides to look at. They are all ILE
these days.



I am maintaining a RPG3 OPM program and need to retrieve the RRN (relative
record number) of the record being read or updated in a physical or logical
file. I have tried using the INFDS looking at positions 397 to 400, but it
is always blank.



Can anyone help with the appropriate DS positions or an alternate solution.



The program cannot be converted to ILE, which would go a long way to
simplifying the issue.



Darryl Freinkel | Assignment 400 Group, Inc.

Tel: 770.321.8562 ext 111 | Fax 770.321.8562

2247 La Salle Dr, Marietta GA, 30062, USA | PO Box 72556, Marietta, GA
30007-2556

E-mail: dfreinkel@xxxxxxxxxxxxxxxxx

Web: www.assignment400.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.