IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Transfer files into datasets without logging on to Mainframe


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sathish Rajan

New User


Joined: 11 Jul 2005
Posts: 7
Location: Chennai

PostPosted: Mon Jul 11, 2005 6:16 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Jul 11, 2005 6:44 pm
Reply with quote

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
View user's profile Send private message
Sathish Rajan

New User


Joined: 11 Jul 2005
Posts: 7
Location: Chennai

PostPosted: Tue Jul 12, 2005 10:09 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 12, 2005 3:46 pm
Reply with quote

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
View user's profile Send private message
Sathish Rajan

New User


Joined: 11 Jul 2005
Posts: 7
Location: Chennai

PostPosted: Tue Jul 12, 2005 6:59 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Jul 14, 2005 12:27 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
No new posts Negative dependency between jobs in m... COBOL Programming 12
No new posts Looking for Mainframe programmers Mainframe Jobs 0
No new posts access Mainframe from .net application All Other Mainframe Topics 0
No new posts Read two files CLIST & REXX 4
Search our Forums:

Back to Top