ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

File status

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

  • File status

    Just a few questions for those who write (or have written) COBOL programs that use display files.

    (1) Do you always use the WORKSTATION device, or do you sometimes use TRANSACTION?

    (2) Do you use the FILE STATUS clause? If so, do you define one status variable or two?

    (3) Are there common values you check the status variables for?

    Thanks!

    Ted

  • #2
    Re: File status

    Please ignore question (1). I was confused about something. I will greatly appreciate answers to questions (2) and (3). Thanks.

    Comment


    • #3
      Re: File status

      I define a variable for status...just for code completeness. But personally, I have never had a need to interrogate/test the status value...for any reason.

      Comment

      Working...
      X