View previous topic :: View next topic
|
Author |
Message |
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Is it possible to automate the download the files from the Mainframe to my desktop without using FTP? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Well, without using FTP, what other options for file transfer ARE supported for desktops at your site? NDM? MQSeries? TCP/IP sockets? How about emailing the file as an attachment?
Maybe you can code a program to use the ISPF File Transfer (Option 3.7) Services and then a batch job to invoke it? Maybe you can write your own TCP/IP application to manage a file transfer between systems? |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Ok The problem is i need to download 100 files from Mainframe to My PC daily .If i use the FTP option i'am not sure of the parameter that i need to pass other than the Username,Password , source file name ,Target file name.How will say the FTP pgm to place the file from mainframe in a particular directory of my PC? Since i'am a new to the FTP concept i'am not sure how it works. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
You could try IND$FILE. It's slower than FTP but it does work. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I think that the concept here is that the O/P wants to push files across to the desktop auto-magically.
The major problem, if the desktop is a Windows (non-server) machine, is that these rarely have a static TCP/IP address or hostname. So, trying to initiate a connection is like trying to hit a moving target. |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Thanks Craq.Is it possible to run the IND$FILE in batch?If yes,Do u have any example on how to do that? |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Thanks for your explanation SuperK.Comin to your point i think my PC has a Static IP.so it should be possible to Transfer file to my pc from Mainframe.Now the question is How to do that ,Like what parameter that we need to pass.can you please throw some light on that.so that i can give it a try. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
krk_kumar1 wrote: |
Is it possible to run the IND$FILE in batch? |
No, it is not. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Krishna, you have FTP connectivity to the desktop? If you do, you should be able to logon to this FTP server, and then enter the HELP subcommand without any parameters. HELP will return a list of all of the supported FTP subcommands for that server. Then, you can enter HELP <command> to get the help text for that particular command. |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Thanks Superk.But i've never worked in the FTP process.so how can i check wether i have FTP connectivity to my desktop? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Networking is not my area of expertise, so I apologize ahead of time if I post anything that's incorrect or misleading. I'd suggest going through your network or desktop support teams.
Some general thoughts:
- Can you PING your desktop from the mainframe, i.e. TSO PING <address or hostname>? Does it respond?
- Does your desktop have a active FTP server running? Your Windows Task Manager should show if there is an FTP process running (usually FTPD).
- If so, can you start an FTP session to your desktop, i.e. TSO FTP <address or hostname>? Do you have RACF authority to start FTP?
- If so, do you know the correct logon and password? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i think my PC has a Static IP.so it should be possible to Transfer file |
Not correct. . . Having a static ip address has nothing to do with whether your computer is configured to be a server rather than a client. Having tcp/ip connectivity (ping or tracert) does not mean your system is a server.
Most personal computers are not configured as an ftp server. It is usually not permitted for security reasons as well as the additonal administrative work. To find out if this is even permitted in your organization, talk with your network support people.
Nearly all personal computers have an ftp client.
If you want to download many files from the mainframe and you know the file names on the mainframe as well as have security to read them, you could write a batch ftp (on your pc) to download the files.
As was mentioned, you could possibly send them as attachments to e-mails sent to your id from the mainframe. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello again,
These days, nearly all "3270 terminals" are connected via tcp/ip, so it is most likely that you do have connectivity. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Sigh.
I miss OS/2. All of our workstations had static IP addresses and full FTP server capability. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
You can create a "list" of files in IND$FILE and recall the list each day for transferring. It's not automatic, but once you start it it would run without intervention. |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Thanks d.sch.I tried FTPing and i got an receive error
"EZA2590E recv error from getNextReply - EDC8128I Connection refused. (errno2=0x769F0442) " and got a return code of 1808 .so what does this mean? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
When you say you tried to ftp - you did start the ftp client on your desktop and then try to connect to the mainframe ftp service, correct?
Quote: |
EDC8128I Connection refused |
You need to get this resolved. The best place to get assistance is your network support people. Then can quickly identify if your pc is properly configured and if you are trying to get to the correct ip address fro the mainframe.
Once they resolve your desktop or connection issue(s), let us know how you progress. |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Hi D.Sch I installed the IIS and tried FTPing the File from Mainframe to My computer. This time the connection was established.
but got an error code 550 saying that "Access is denied" . I tried by changing the Path by giving
cd /Documents and Settings/User/Desktop/download and the above folder exists but still getting the error of 550 with the message as "The system cannot find the path specified" .so can you plz throw some light on what am i doing wrong here? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I installed the IIS |
You installed IIS on your desktop? This is not typically done. . .
Quote: |
got an error code 550 saying that "Access is denied" |
What raised the "access denied" error? The id being used has not been given proper pernmissions or the service is not to be used (restricted).
As i mentioned before, your network people will have all of the answers about your environment - at best we can guess.
Quote: |
"The system cannot find the path specified" |
This may be the mainframe path. . . |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Hi all ,
Thank you very much for your support.finally i was able to do the file transfer from mainframe to my computer by running a batch FTP job. So what i did was
Step 1 : Install IIS in my computer.
Step 2 : make a virtual directory and point home directory setting in the IIS to the virtual directory
Step 3: Change the security settings in the IIS to have WRITE access(Click FTP-Sites ---> Default FTP Site ---> right Click ---> Properties -----> Home Directory ---> Check the Write box) the Virtual directory.
Step 4: Stop the FTP Server and restart it
Step 5: Run the FTP job .Bingo you got the file in your Virtual directory.
Thanks Again |
|
Back to top |
|
|
|