I have a subfile defined (TAB001), with a control record (TAB001C)
In the control record, Indicator 21 is used to clear the subfile. Wanting to start of cleanly, I begin my program with:
OPEN I-O dTAB013
MOVE EEN TO IN20 IN TAB001C-O
MOVE NUL TO IN21 IN TAB001C-O
MOVE NUL TO IN40 IN TAB001C-O
WRITE DTAB013-REC FROM TAB001C-O FORMAT IS "TAB001C"
MOVE NUL TO IN20 IN TAB001C-O
MOVE EEN TO IN21 IN TAB001C-O
(The other indicaters are to allow scroll and display. NUL and EEN are constants, turning the indicators on and off)
The write command however gives an I/O error with file status 9N. I've been busting my head over this why a simple write command won't work. I'm clueless... Help would be appreciated.
Thank you,
Niki.
In the control record, Indicator 21 is used to clear the subfile. Wanting to start of cleanly, I begin my program with:
OPEN I-O dTAB013
MOVE EEN TO IN20 IN TAB001C-O
MOVE NUL TO IN21 IN TAB001C-O
MOVE NUL TO IN40 IN TAB001C-O
WRITE DTAB013-REC FROM TAB001C-O FORMAT IS "TAB001C"
MOVE NUL TO IN20 IN TAB001C-O
MOVE EEN TO IN21 IN TAB001C-O
(The other indicaters are to allow scroll and display. NUL and EEN are constants, turning the indicators on and off)
The write command however gives an I/O error with file status 9N. I've been busting my head over this why a simple write command won't work. I'm clueless... Help would be appreciated.
Thank you,
Niki.