ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

writing records

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

  • writing records

    hello code400 member
    i am beginner in cobol400 actually i did reading file using cobol400 now i want to write new records in file. can anybody help me?
    thanks in advance
    mamata

  • #2
    Re: writing records

    Mamata, that is a pretty opened ended questions. There is a lot to write about IO's.

    You have to open your file OUTPUT, I-O, or EXTEND. If you open output, you will clear the file (except LF's). If you are writing back to the same file that you are reading, you must use I-O.

    Then WRITE your record.

    Let me know how that works.
    iSeriesCOBOL
    www.iseries-cobol.com

    Comment


    • #3
      Re: writing records

      thanks but i cant get it can u explain more?

      Originally posted by iseriescobol View Post
      Mamata, that is a pretty opened ended questions. There is a lot to write about IO's.

      You have to open your file OUTPUT, I-O, or EXTEND. If you open output, you will clear the file (except LF's). If you are writing back to the same file that you are reading, you must use I-O.

      Then WRITE your record.

      Let me know how that works.

      Comment


      • #4
        Re: writing records

        What can't you get?
        iSeriesCOBOL
        www.iseries-cobol.com

        Comment

        Working...
        X