What's the best/easiest way to test a logical file to see if contains records. I have two files. One contains customer charges/credits VRFADJ and the other contains No Good Credits VRFNGC. Each file may or may not contain data.
In my procedure(s) I READ each record. On the first read attempt if the file has no records I want to LEAVESR. I see where you can use indicators within the read operation but 1. I don't want to use indicators if I don't have to 2. Not sure if a file with no records will turn on an error indicator.
Thanks in advance for any and all help.
Robert
In my procedure(s) I READ each record. On the first read attempt if the file has no records I want to LEAVESR. I see where you can use indicators within the read operation but 1. I don't want to use indicators if I don't have to 2. Not sure if a file with no records will turn on an error indicator.
Thanks in advance for any and all help.
Robert