I have a subfile program where I prompt for a locn#, set off the indicators 81, 82 and write to the subfile control record to clear the subfile. Then, in a loop, I write write records to the subfile for the locn that was entered. When I write first subfile data record, I set on indicator 81. To display the subfile, I set on 82. Indicator 81 is already on, so the contents of the the subfile and the subfile control are displayed. When I prompt for a new locn, I repeat the steps above.
The problem is, if there are no records written to the subfile 81 is off when I write to the subfile control record but it still displays subfile records for the original locn that was keyed in. I would have thought that clearing the subfile by turning off 81 and 82 and not turning on the indicator 81 would cause the subfile control record to be displayed with no subfile data records. I changed my program to set on 81 even when no records are written to the subfile and presto, problem solved, blanks subfile is displayed.
Has something changed to cause it to work this way now.
The problem is, if there are no records written to the subfile 81 is off when I write to the subfile control record but it still displays subfile records for the original locn that was keyed in. I would have thought that clearing the subfile by turning off 81 and 82 and not turning on the indicator 81 would cause the subfile control record to be displayed with no subfile data records. I changed my program to set on 81 even when no records are written to the subfile and presto, problem solved, blanks subfile is displayed.
Has something changed to cause it to work this way now.
Comment