×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Well, if you know where it is, you can use FTP. If all you need is to see
it, you can use
dir /qsys.lib/vern.lib/xcsecrtn.savf (namefmt 1)
or
dir vern/xcsecrtn (namefmt 0)
The size is in the second column.
If you need it in a program, you use the same subcommands. But you would
have a script for the FTP commands and an output file. On a 400 you use
overrides - details are in the FTP manual in InfoCenter or maybe in the
TCP/IP Reference manual. Basically you OVRDBF INPUT FTPSCRIPT and OVRDBF
OUTPUT OUTFILE. Then execute FTP in your program. This is the same thing as
what is called batch FTP. On a PC you use redirection for the output and
the -s switch for the script. Type ftp -h to get help. Then your program
can read the output file to get the size.
This method does everything on the local machine. It is also possible to
run commands on the remote box (either RUNRMTCMD from a command line, or
RCMD in FTP, a couple other choices). Then a variety of options exist. A
DDM file pointing to the remote box would let you use OUTFILE support in
DSPOBJD, then you can just read that file through the DDM file in your program.
There are probably many more ways that could involve transferring the
output of a command on the remote box to the local system.
HTH
Vern
At 05:11 AM 4/27/2004, you wrote:
Hi @All!
Is there a way to retrieve the size of an object (save file) on a remote
system via *IP???
Titus Kruse
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.