Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Transfer files into datasets without logging on to Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Transfer files into datasets without logging on to Mainframe
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

Moderator Team Head


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

PostPosted: Mon Jul 11, 2005 6:44 pm    Post subject: Re: Transfer files into datasets without logging on to Mainf
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    Post subject: Re: Transfer files into datasets without logging on to Mainf
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

Moderator Team Head


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

PostPosted: Tue Jul 12, 2005 3:46 pm    Post subject: Re: Transfer files into datasets without logging on to Mainf
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jul 14, 2005 12:27 am    Post subject: Re: Transfer files into datasets without logging on to Mainf
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us