Count Records in a huge PS

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
Posts: 1
Joined: Thu Sep 23, 2010 5:11 pm
Location: Coimbatore

Count Records in a huge PS

Post by jijojoseph » Mon Oct 11, 2010 3:33 pm

Please help me to write a rexx code to find no of record in a PS of Huge size ( above million records)

User avatar
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Oct 11, 2010 3:55 pm

REXX does not lend itself to efficient i/o for large files.
you are better off using a Sort utility
Display the number of input or output records
here is a link to Smart DFSORT Tricks PDF where you can quickly find the solution.
or refer to the manual for your site's Sort utility if you don't have DFSORT.

If this is a homework assignment, suggest you read the REXX Users Guide and the REXX Language Reference.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others