Another approach that could be used if you are not bothered by reading
the whole file is to use ftp and

get mvs.dataset.name nul    (Windows)
  or 
get mvs.dataset.name /dev/null (Linux/*nix)

Windows, for its own peculiar reasons, will also accept nul.xxx where xxx is
some qualifier of your own choosing,

Bill

On Tue, 23 Dec 2008 08:03:51 -0600, John McKown <[email protected]> wrote:

>On Tue, 23 Dec 2008 07:57:39 -0600, Paul Gilmartin <[email protected]>
wrote:
>
>>On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar wrote:
>>>
>>>I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot
>>>download the file and check the same as I know the file size would be over 50
>>>GB and I don't want to fill up my hard disk.
>>>
>>1) Mount the data set with NFS.
>>   Use the "wc" command on the client system to count bytes.
>>
>>2) Or, on an FTP client that supports pipes as targets, do:
>>
>>     get 'MY.DATA.SET' "| wc"
>>
>>-- gil
>>
>
>OUCH! That's using the old sledge hammer to pound in a finishing nail! <grin>.
>
>If the OP is willing to read the dataset, as the above requires, then I'd
>use DFSORT to copy it to DD DUMMY. DFSORT will give you the number of bytes
>read in the file.
>
>--
>John
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to