This file object method will open the file so the script is able to manipulate records within the chosen file. If you manually open a file, make sure you have a following close when you're finished with the filemove the cursor to the record with a matching key and read the record into the chosen buffer.
getRecord will have the same functionality as the CHAIN operation code in RPG. You may also use 'file.chain()' with the same parameters as this method.
...
- Array of keys or key variable. Get the next record by key. If the file has no keys, it will default to the RRN.
- Boolean noLock. If true, no lock will be created.
- String recordName. Record format name.
- (Optional) Data strucutrestructure. If a DS is passed in, the recieved received buffer from the file will be placed into the specified DS.
...