Page 1 of 1

finding the filesize?

PostPosted: Mon Jun 07, 2010 4:42 pm
by ranga_subham
Hi,

How do I find the size of file in no. of bytes?

I used a syncsort job on a file and it shows filesize in sysout.

WER246I  FILESIZE 280,720 BYTES


Is there any other way to find the size of file / any formula for calculation of size?

Thanks.

Re: finding the filesize?

PostPosted: Mon Jun 07, 2010 5:10 pm
by Robert Sample
Find the number of blocks used by the file. Multiply the number of blocks times the bytes per block.

Re: finding the filesize?

PostPosted: Mon Jun 07, 2010 5:22 pm
by ranga_subham
Ok......sorry for the confusion............ :?

I tried to copy a file to SYSOUT DUMMY. Though the job ended successfully I don't see any FILESIZE appearing in the sysout.
I don't know why and how our production does show this FILESIZE info in it's SORT step !!!

Thanks.

Re: finding the filesize?

PostPosted: Mon Jun 07, 2010 10:21 pm
by dick scherrer
Hello,

Every sort process i've ever run shows the size of the data it "worked on". . .

I don't see any FILESIZE appearing in the sysout.
Post all of the informational output from this step includingall of the messages and message ids. . .

Re: finding the filesize?

PostPosted: Wed Jun 09, 2010 4:37 pm
by ranga_subham
Ok.......after trail and error attempts with my SORT job I am getting the FILESIZE appearing in the SYSOUT.

Thank you all........... :)