Hi,
If you use SQL you can select RRN as a field.
Regards,
Martin Gilbert.
////
Hi,
Using the command DSPPFM, you can trace out the RRN number.
Thanks.
Last Wiki Answer Submitted: April 21, 2009 6:19 am by Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
You don’t typically see the relative record number, it is a records placement with in a physical file. Is it the first record or the fifth record or the 500th record. That is its relative record number from the beginning of the file.
In RPG, add a file info data structure to the file whose RRN you wish to see. One of the fields in the data structure will contain the RRN of the most recently accessed record.
In SQL, try Select rrn(fileName), fieldA, fieldB from fileName.
in what? SQL? RPG? …
Pwopen12,
You don’t typically see the relative record number, it is a records placement with in a physical file. Is it the first record or the fifth record or the 500th record. That is its relative record number from the beginning of the file.
Hope this helps,
Bill Poulin
In RPG, add a file info data structure to the file whose RRN you wish to see. One of the fields in the data structure will contain the RRN of the most recently accessed record.
In SQL, try Select rrn(fileName), fieldA, fieldB from fileName.