Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Utility Program to count bytes.

Status
Not open for further replies.

dilbbert

Programmer
Jun 8, 2001
1
US
I need a utility type cobol program that will count the number of bytes or characters in a file.
 
Hi,

I haven't come across any util that does that. How do you plan to use the info. Do you want to I/p a list of files and get a reply for each? Do you want to look at one file at a time?. Must the info be correct to the nearest byte/k/meg? Must the ans be in bytes? Or can it be in trks, etc.? Are you mainly interested in seq files, or must PDS, VSAM RR, KSDS, direct files be considered?

The reason for all the ques is that there may be approaches other than a COBOL util. BTW, because of the possibility of imbedded short blocks in seq files, reading the file may be the only solution if an exact count is required.

Jack
 
Hi,

a directory view shows also info: the binairy size.

If you download RCOPY.zip from CA, it can count for you: amount of records of a certain type.

On the mainframe ISPF can give you most of the info.

What kind of files do you want to read and count and on what platform.

Regards,

Crox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top