ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

READ does not read

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

  • READ does not read

    I just ran into behavior I've never seen before.

    An OPM COBOL program does this:

    WRITE a format that puts a command key legend on line 23.
    WRITE a subfile control format that overlays the screen.
    READ the subfile format.

    The program goes into a loop. I never see a screen. Anybody know what I'm doing wrong?

  • #2
    Re: READ does not read

    Never mind. I had WRITE instead of WRITE SUBFILE when adding records to the subfile. The WRITE was failing, which means the subfile was empty.
    Last edited by TedHolt; November 17, 2015, 02:37 PM.

    Comment

    Working...
    X