reading a file

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
lucky.rohith
Member
Posts: 8
Joined: Mon Aug 21, 2006 4:23 pm

reading a file

Post by lucky.rohith » Thu Aug 24, 2006 12:24 am

Hi,

IN C-language v can read contents of a file from the end using pointers.
Is ther any possibility of reading contents of a file from end in COBOL?
If its ther how v hav to do it?
[/quote]

gottabe.grenz
Member
Posts: 6
Joined: Thu Sep 14, 2006 10:41 am

Post by gottabe.grenz » Thu Sep 14, 2006 2:25 pm

rohit,
you can move the records from the file to a table declared in ws section.. then u can read it in whichever way u can

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others