Hi Mr Lukyanov,
The
problem is that it tries to get
UAGS.PILOT.AGS.EXTR.INTEREST(0)
Even
if I do cd .. to move from UAGS. to root, it does not work
Example:
lftp mfmq1000
lftp [EMAIL PROTECTED]:~> pwd
ftp://[EMAIL PROTECTED]
lftp [EMAIL PROTECTED]:~> get 'PILOT.AGS.EXTR.INTEREST(0)'
get: Access failed: 501 A qualifier in "UAGS.'/'UAGS.'/'UAGS." begins with an invalid character (PILOT.AGS.EXTR.INTEREST(0))
lftp [EMAIL PROTECTED]:~> get "PILOT.AGS.EXTR.INTEREST(0)"
get: Access failed: 550 Data set UAGS.PILOT.AGS.EXTR.INTEREST(0) not found
lftp [EMAIL PROTECTED]:~> pwd
ftp://[EMAIL PROTECTED]
lftp [EMAIL PROTECTED]:~> get 'PILOT.AGS.EXTR.INTEREST(0)'
get: Access failed: 501 A qualifier in "UAGS.'/'UAGS.'/'UAGS." begins with an invalid character (PILOT.AGS.EXTR.INTEREST(0))
lftp [EMAIL PROTECTED]:~> get "PILOT.AGS.EXTR.INTEREST(0)"
get: Access failed: 550 Data set UAGS.PILOT.AGS.EXTR.INTEREST(0) not found
Example with Standard ftp:
ftp mfmq1000
Connected to mfmq1000.
220-TCPFTPD1 IBM FTP CS V1R4 at MFMQ1000.SLAC.CA, 20:36:33 on 2005-07-08.
220 Connection will close if idle for more than 30 minutes.
331 Send password please.
230 UAGS is logged on. Working directory is "UAGS.".
Remote system type is MVS.
ftp> get 'PILOT.AGS.EXTR.INTEREST(0)'
local: 'PILOT.AGS.EXTR.INTEREST(0)' remote: 'PILOT.AGS.EXTR.INTEREST(0)'
227 Entering Passive Mode (172,29,50,129,10,217)
125 Sending data set PILOT.AGS.EXTR.INTEREST.G4998V00 FIXrecfm 58
250 Transfer completed successfully.
290820 bytes received in 0.0575 secs (4.9e+03 Kbytes/sec)
Connected to mfmq1000.
220-TCPFTPD1 IBM FTP CS V1R4 at MFMQ1000.SLAC.CA, 20:36:33 on 2005-07-08.
220 Connection will close if idle for more than 30 minutes.
331 Send password please.
230 UAGS is logged on. Working directory is "UAGS.".
Remote system type is MVS.
ftp> get 'PILOT.AGS.EXTR.INTEREST(0)'
local: 'PILOT.AGS.EXTR.INTEREST(0)' remote: 'PILOT.AGS.EXTR.INTEREST(0)'
227 Entering Passive Mode (172,29,50,129,10,217)
125 Sending data set PILOT.AGS.EXTR.INTEREST.G4998V00 FIXrecfm 58
250 Transfer completed successfully.
290820 bytes received in 0.0575 secs (4.9e+03 Kbytes/sec)
-----Original Message-----
From: Jerome Savard
Sent: Wednesday, June 29, 2005 10:51 AM
To: '[EMAIL PROTECTED]'
Subject: lftpHi,I'm trying to use lftp to get a file on a mainframe.Once I'm connected, I'm in the 'UAGS.' directoryI need to get PILOT.AGS.EXTR.INTEREST(0)Normally on the mainframe, we put the file name between single quotes:get 'PILOT.AGS.EXTR.INTEREST(0)'It is the equivalent on Unix to put à slash at the beginning to say that the file is not in the current directory but related to the root dir:get /pilot/ags/extr/interestHowever when I typelftp myHost -e "get -a 'PILOT.AGS.EXTR.INTEREST(0)' -o myLocalFileName"
I getget: Access failed: 501 A qualifier in "UAGS.'/'UAGS.'/'UAGS." begins with an invalid character (PILOT.AGS.EXTR.INTEREST(0))Jérôme SavardStandard Life Canada
