Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

How to get a specific record based on the actual physical record location number

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get a specific record based on the actual physical record location number

    select * from file where RRN(file)=record number

  • #2
    How to get a specific record based on the actual physical record location number

    How to get a specific record based on the actual physical record location number of the file using SQL.

    Comment


    • #3
      How to get a specific record based on the actual physical record location number

      If you are using RPG, define the file as non-keyed. Now you can chain the file with RRN. e.g. /free chain 123 filename; If %found; .....do something; EndIf /end-free However, if the file is keyed, you need to use RECNO keyword in File declaration.

      Comment

      Working...
      X