View previous topic :: View next topic |
Author |
Message |
wolves Beginner
Joined: 11 Jun 2004 Posts: 17 Topics: 8
|
Posted: Fri Jun 25, 2004 9:44 am Post subject: Count records while in view/browse mode in 3.4 |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Mon Jun 28, 2004 3:37 am Post subject: |
|
|
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 |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Thu Jul 01, 2004 2:07 pm Post subject: |
|
|
In edit or view you could also try:
L .ZL
Regards, Jack. |
|
Back to top |
|
 |
veluvpv Beginner
Joined: 14 Jul 2008 Posts: 9 Topics: 1
|
Posted: Thu Jul 17, 2008 4:16 am Post subject: |
|
|
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 |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Jul 17, 2008 7:55 am Post subject: |
|
|
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 |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Feb 10, 2009 9:45 am Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Feb 10, 2009 9:57 am Post subject: |
|
|
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 |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Feb 10, 2009 11:29 am Post subject: |
|
|
dbzTHEdinosauer
Even in edit/view this one is working.
Thanks,
Siva |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Tue Feb 10, 2009 9:13 pm Post subject: |
|
|
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 |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Feb 10, 2009 11:36 pm Post subject: |
|
|
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 |
|
 |
|
|