MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Count records while in view/browse mode in 3.4

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
wolves
Beginner


Joined: 11 Jun 2004
Posts: 17
Topics: 8

PostPosted: Fri Jun 25, 2004 9:44 am    Post subject: Count records while in view/browse mode in 3.4 Reply with quote

While in 3.4, I am looking at a very large file with over 1M records. Instead of just going to the bottom to see how many records I have, it takes awhile, is there a command to count how many records?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jun 25, 2004 9:52 am    Post subject: Reply with quote

wolves,

Please search before posting. This topic has been covered earlier. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=7&highlight=count

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Mon Jun 28, 2004 3:37 am    Post subject: Reply with quote

If you are in Edit or View (but not Browse) this Edit macro may be useful:

Code:

/* REXX edit macro */                                           
Address isredit "MACRO"                                         
address isredit "(N) = LINENUM .ZLAST"                         
N = strip(N,L,0)                                               
ZEDSMSG = N||' lines in this file'                             
ZEDLMSG = 'There are '||N||' lines in this file. Believe me!'   
address ispexec "SETMSG MSG(ISRZ001)"                           


_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Jul 01, 2004 2:07 pm    Post subject: Reply with quote

In edit or view you could also try:

L .ZL

Regards, Jack.
Back to top
View user's profile Send private message
veluvpv
Beginner


Joined: 14 Jul 2008
Posts: 9
Topics: 1

PostPosted: Thu Jul 17, 2008 4:16 am    Post subject: Reply with quote

Using File-Aid Tool in Option 3 -Utiltilities in that option 8-Interactive mention the input dataset and then enter and give the command Tally. It will display number records read in the input file.

Regards,
Velu
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Jul 17, 2008 7:55 am    Post subject: Reply with quote

Shocked if someone has the region to edit/view a million line file, i'd be amazed!
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Feb 10, 2009 9:45 am    Post subject: Reply with quote

Mervyn,

When i tried to count the no of lines in file it is giving following message
Code:

ISDXFJT Data Sets Matching UPTA00Q.GB.UPTAERX2.OMA06      N LINES IN THIS FILE
Command ===>                                                  Scroll ===> CSR
                                                                             
Command - Enter "/" to select action                  Message           Volume




it is not showing extact count


Thanks,
Siva
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Feb 10, 2009 9:57 am    Post subject: Reply with quote

Siva,

were you actually in an edit/view session with the file, or did you just enter the name of the macro next to the DSN in a 3.4 display?

The screen shot you gave indicates that you are not in a view/edit session with the ds.

large files should be dealt with by a batch job, especially if all you want is a count.

This is one of those things that rookie designers forget:
During the creation of a file is the time to count, not afterwards.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Feb 10, 2009 11:29 am    Post subject: Reply with quote

dbzTHEdinosauer

Even in edit/view this one is working.

Thanks,
Siva
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue Feb 10, 2009 9:13 pm    Post subject: Reply with quote

I realize this is an old thread, but I've only just seen it now. Won't ISPF throw you into browse mode if you try to edit/view a very large file, in which case you can't run an edit macro?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Feb 10, 2009 11:36 pm    Post subject: Reply with quote

Terry,

That's Correct .... But i tried to just test the macro on file which contains a few records.. i would like to know how we can test this macro..

Thanks,
Siva
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group