ftp> get QSYS.LIB/library.LIB/sourcefile.FILE
But it tells me that the specified object name is too long. Help!
Thanks in advance.
Neil.
> Hi,
Hello
> Is there a simple user guide for FTP from AS400 to PC (and back
> again). I am having trouble getting a source member from the
> AS400:
>
> ftp> get QSYS.LIB/library.LIB/sourcefile.FILE
This syntax (with a starting "/") would be correct if you use the IFS
name format. By default, the FTP server uses the library name format.
Try :
cd library
get sourcefile.FILE/member.MBR
or
get library.LIB/sourcefile.FILE/member.MBR
>
> But it tells me that the specified object name is too long. Help!
>
> Thanks in advance.
> Neil.
>
>
>
>
>
>
--
Cordialement/Best regards
Marc Rauzier
try the command 'quote site namefmt 1' .
You need this for accessing the libraries from a NT-Computer.
regards
Volker
"Neil" <ca...@remember.com> schrieb im Newsbeitrag
news:b5mm54$73c$1$8302...@news.demon.co.uk...
"Volker Jordan" <vjo...@stud.uni-frankfurt.de> wrote in message
news:b5msim$tjv$02$1...@news.t-online.com...
there is no difference. Be sure to use binary transmission.
regards
Volker
"Neil" <ca...@remember.com> schrieb im Newsbeitrag
news:b5mtvn$ee0$1$8302...@news.demon.co.uk...
get lib/srcfile.member
"Volker Jordan" <vjo...@stud.uni-frankfurt.de> wrote in message
news:b5msim$tjv$02$1...@news.t-online.com...
Are u trying to FTP from the PC (DOS command line)?. The AS400 server
must be told to accept name in the IFS format that you have specified.
before the get command give the command
quote site namefmt 1
This is because by default it uses the AS400 specific format.
siva
So the GET command would look like this:
"Get Lib_Name/File_Name"
If you needed to get a member it would be like this:
"Get Lib_Name/File_Name.Member_Name"
This is NOT CORRECT:
"get sourcefile.FILE/member.MBR"
Hope it helps,
Dan
Marc Rauzier <marc.r...@netcourrier.com> wrote in message news:<Xns9348811654B...@127.0.0.1>...
> I agree that it appeares that the name format for the AS/400 is
> set to the AS/400 format.
>
> So the GET command would look like this:
>
> "Get Lib_Name/File_Name"
>
> If you needed to get a member it would be like this:
> "Get Lib_Name/File_Name.Member_Name"
>
> This is NOT CORRECT:
> "get sourcefile.FILE/member.MBR"
>
250 "/QSYS.LIB/QGPL.LIB" is current library.
ftp> get qclsrc.file/x.mbr
200 PORT subcommand request successful.
150 Retrieving member X in file QCLSRC in library QGPL.
250 File transfer completed successfully.
If you are looking for a way to "backup" data from one AS/400 and
restore it one the same or another system, please take a look at
ZipSeries. ZipSeries are free in this spring and can be found at
www.ZipSeries.com
Regards,
Agent Data
Bent Ronne
"Neil" <ca...@remember.com> wrote in message news:<b5mm54$73c$1$8302...@news.demon.co.uk>...
--
Dan Hicks
When you are in it up to your ears, keep your mouth shut.
That's because by default, FTP assumes your in the qsys.lib file system, so
use:
get <library>/<file>.<mbr>
If you want to use the IFS to get this, enter the following:
QUOTE SITE NAMEFMT 1
then issue the ftp command (but why would you bother?)
Yeah, I can never remember QUOTE SITE NAMEFMT 1, so I always just do
a cd / or some such right at the start.
--
Dan Hicks
In nothing do men approach so nearly to the gods as in doing good to
men. --Marcus Cicero