Mainframe Modernization - Wednesday Talks #19

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 3

  • @saiteja.5498
    @saiteja.5498 ปีที่แล้ว +1

    Sir , Could you also please make a video on COBOL batch Debugging.

  • @Mr-ny1vb
    @Mr-ny1vb ปีที่แล้ว

    How to read file in reverse order in COBOL program

    • @KumarITChannel
      @KumarITChannel  ปีที่แล้ว

      Try the below.
      READ-LAST-RECORD.
      READ INPUT-FILE
      AT END
      SET WS-END-OF-FILE TO 'Y'
      END-READ.
      READ-PREVIOUS-RECORD.
      READ PREVIOUS INPUT-FILE
      AT END
      SET WS-END-OF-FILE TO 'Y'
      END-READ.
      The above will read the last record in the input file using the "READ" statement in the READ-LAST-RECORD paragraph.
      It then reads the previous record in the file using the "READ PREVIOUS" statement in the READ-PREVIOUS-RECORD paragraph.