Count the number of characters in file

cobol interview questions

Moderator: Moderator Group

Post Reply
prashantkutal
Member
Posts: 1
Joined: Thu Feb 01, 2018 2:30 pm

Count the number of characters in file

Post by prashantkutal » Thu Feb 01, 2018 2:38 pm

suppose we have a file which has address in it. there are total 5 records for 5 different address

eg:

pune wadgaonsher
Pune camp
pune camp part 2
pune shivaji nagar.
pune mundhwa.

how can I find the total no of characters and the pending amount in record length for each record.
We can use JCL and COBOL

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