MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » November 2012

RE: How can I retrieve the RRN of a record in a PF in a RPG3 program?



fixed

Darryl,
Positions 397-400 look good to me, but I don't
have any working code using that info . . . so I
cannot really confirm . . .


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Darryl Freinkel
Sent: Wednesday, November 14, 2012 3:50 PM
To: midrange-l@xxxxxxxxxxxx
Subject: How can I retrieve the RRN of a record in a PF in a RPG3 program?

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



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact