View previous topic :: View next topic
|
Author |
Message |
Sathish Rajan
New User
Joined: 11 Jul 2005 Posts: 7 Location: Chennai
|
|
|
|
Hi,
I would want to transfer a text file and a zip file into a mainframe dataset through DOS commands. I would want to know if I could achieve this without logging on to mainframe. Please let me know if this is possible. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You could FTP the files, but that does require that you provide a valid userid and password to establish the proper file access authority. Unless, or course, your systems programmers have provided a method for anonymous or general-purpose FTP's. |
|
Back to top |
|
|
Sathish Rajan
New User
Joined: 11 Jul 2005 Posts: 7 Location: Chennai
|
|
|
|
Thanks, consider that I have a valid ID and a password. Please could you send me the scripts for file transfer. This would really be helpful. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I did a help on FTP and received this information:
Code: |
C:\>ftp -h
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.
|
so, it looks like the command would be:
Code: |
C:\FTP -v -i -s:myftp.txt hostname
|
where the contents of myftp.txt would be something like:
Code: |
userid
password
ascii
put local_filename 'host_dataset_name' (replace
quit
|
|
|
Back to top |
|
|
Sathish Rajan
New User
Joined: 11 Jul 2005 Posts: 7 Location: Chennai
|
|
|
|
Hi SuperK,
I tried this one, but it doesn't seem to work. I'm not able to open the connection. I'm giving the IP address of the IBM session as the host name. Please suggest. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The host FTP server should have a name, not an address. Check with your local Systems Programmers. Or, check the SYSPRINT output of your system's TCP/IP started task, and you should see an entry that says something like "HostName = somename".
Also, don't forget that you must have the proper RACF authority to use FTP services. Again, check with your Systems Programmers. |
|
Back to top |
|
|
|