Getting no of records in a file

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
Rajapriyaa
Member
Posts: 12
Joined: Fri Apr 17, 2009 11:22 am

Getting no of records in a file

Post by Rajapriyaa » Fri May 15, 2009 5:40 pm

Hi...
Can we get the number of records in a file without browsing it. Is ther any TSO command to do it?

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Fri May 15, 2009 5:43 pm

Try using Count before file name.
Thanks

MaheshVamsi

Rajapriyaa
Member
Posts: 12
Joined: Fri Apr 17, 2009 11:22 am

Post by Rajapriyaa » Fri May 15, 2009 5:51 pm

Hi...
Its throwing error message "Command failed". Even i tried to use TSO COUNT and got the same error message...

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Fri May 15, 2009 5:53 pm

then it might be my Shop specific.
Thanks

MaheshVamsi

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri May 15, 2009 8:25 pm

I can't think of one. You'll probably want to write your own unless you want to stick with Browse.

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Fri May 15, 2009 10:39 pm

Just asking a question b/c of curiousity, why you dont want to browse the file.
Thanks

MaheshVamsi

Rajapriyaa
Member
Posts: 12
Joined: Fri Apr 17, 2009 11:22 am

Post by Rajapriyaa » Mon May 18, 2009 10:39 am

Hi mahesh.... If we browse the file to get the number of records it will take considerable amount of time incase of lakhs of records. Even we can find number of records by running some DYL or SORT. I just want to know the TSO command to find total records if any.

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Mon May 18, 2009 10:53 am

yes I know, for a file which contains huge amount of data, for reching end of file some times it will take lot of time.

just to suggest to use sort for getting count , i asked the purpose.
Thanks

MaheshVamsi

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon May 18, 2009 11:30 am

There is no such TSO command which will give you the "count" of records in file.

COUNT is a site specific command.
for reching end of file some times it will take lot of time
I believe this is not the purpose, if this is the intention one might use the COPYBACk facility of FILE-AID.
Regards,
Anuj

cmsmoon
Member
Posts: 3
Joined: Mon Jun 18, 2012 4:00 pm

Post by cmsmoon » Tue Jun 19, 2012 4:05 pm

Can you please show the screen shot how you tried?

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Jun 19, 2012 4:39 pm

Why in the heaven will you ask such a question, in a thread which is nearly 3 years old?
Regards,
Anuj

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Tue Jun 19, 2012 7:33 pm

And "screenshots" should not be posted. . .

To show the content of a 3270-screen (the typical mainframe terminal) use copy/paste and then apply the Code tag [co de] your stuff [/co de] to preserve alignment and improve readability. Remove the embedded spaces.

As Anuj mentions - it is best to reply to currently active topics rather than one that has been dormany for multiple years.
Have a good one

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 1:28 am

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Feb 03, 2016 12:44 am

<< Content deleted By Admin >>

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