Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relative Record Number in a Logical File

Status
Not open for further replies.

TracyB250

Programmer
Mar 19, 2010
8
US
I have a program stuck in a loop that is using a logical. I'm wondering how I can find the record within the physical. I assume the I/O record and relative record number are referring to the logical and not the physical. Is there anyway to display a relative record number in a logical?


I/O ----Open--- Relative
Count Opt Shr-Nbr Record
2298 IO NO 22648
 
The RRN should be the RRN in the physical. I use that in these cases to find the exact record.
 
There's no RRN in a logical file. You can however get the physical RRN the logical is pointing to using the INFDS on the F-spec of the relevant logical file.
The RRN is a binary field pos 397-400 in the INFDS.


Philippe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top