View previous topic :: View next topic
|
Author |
Message |
Madhaviy
New User
Joined: 30 Oct 2009 Posts: 37 Location: India
|
|
|
|
Hi,
I am trying to dowload a product from CA site to mainframes using pax enhanced ESD. I am using following set of commands in JCL provided by CA:
//INPUT DD *
ftpdownloads.ca.com
ANONYMOUS husachde@in.ibm.com
LCD /SERVICE/pax/
BINARY
GET /186767/10259909/
QUIT
The GET command fails with
EZA1736I GET /186767/10259909/
EZA2554W Get fails: /SERVICE/pax/ is a directory.
From the manual:
EZA2554W cmd fails: filename is a directory.
Explanation:
The file that is named is a directory. The get, put, and append commands do not support file transfer for a directory file.
This picks the directory name from a previous command LCD.
Then i created a file /SERVICE/pax/abc and put the same in LCD.
The LCD command fails due to this.
EZA1736I LCD /SERVICE/pax/abc
EZA2580E LCD cmd failed : EDC5135I Not a directory. (errno2=0x0519004F)
Now this is a paradoxical situation LCD only takes a directory and GET doesnt take a directory.
Thanks in advance for the help. |
|
Back to top |
|
|
Madhaviy
New User
Joined: 30 Oct 2009 Posts: 37 Location: India
|
|
|
|
I then tried the commands as following:
//INPUT DD *
ftpdownloads.ca.com
ANONYMOUS husachde@in.ibm.com
LCD /SERVICE/pax/
BINARY
GET /186767/10259909/ /SERVICE/pax/abc
QUIT
and i get the following:
EZA1460I Command:
EZA1736I GET /186767/10259909/ /SERVICE/pax/acf
EZA1701I >>> PORT 10,1,16,36,64,160
200 PORT command successful.
EZA1701I >>> RETR /186767/10259909/
550 /186767/10259909/: Is a directory
EZA1460I Command:
EZA1736I QUIT
EZA1701I >>> QUIT
221 Goodbye.
Now /186767/10259909/ is what was given after the FTP request is processed by CA. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Did you try a DIR or LS in FTP on /186767/10259909/ to find out for sure if this is a file or a directory?
Did you try MGET?
Diid you contact CA support for assistance? |
|
Back to top |
|
|
Madhaviy
New User
Joined: 30 Oct 2009 Posts: 37 Location: India
|
|
|
|
I did LS in FTP and found that this is indeed a directory and there is file inside this 150000AJ100.pax.Z.
So i modified the GET command as:
EZA1736I GET /186767/10259909/150000AJ100.pax.Z /SERVICE/pax/abc (REPLACE
And it worked!
Thanks for the help.
Regards, |
|
Back to top |
|
|
|