Subject: | |
From: | |
Reply To: | |
Date: | Fri, 27 Aug 1999 19:21:35 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Richard,
Try the following
Build a large temp file to hold the output of listf
BUILD TMPFILE;REC=-80,F,1,ASCII;DISC=85000;NOCCTL
do a file equation
FILE TMPFILE,old;dev=disc
then do your LISTF with a ,6 into the file
LISTF [log in to unmask],6;*TMPFILE
Now you can use finfo to find the eof of the file and that will tell how
many files
SETVAR FCOUNT FINFO("XX.PUB.SYS", "EOF")
the variable FCOUNT will contain the number of files that came out of your
LISTF
hope this helps
Jim
Richard Blake wrote in message ...
>Hi all,
>
>Does anyone know how to get a "count" of files?
>
>If I use LISTFILE or LISTF, I can get info using ,3,6 etc. But what I
>want to know is how many files that meet a certain naming criteria exist
>on a given group.
>
>Example: LISTF IL2@ will list all the files but not tell me how many
>there are. There are too many to count.
>
>Any ideas?
>
>Thanks,
>Richard
>
|
|
|