MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

is it possible to download a mainframe file through rexx?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
sudipta15ee
Beginner


Joined: 03 May 2011
Posts: 8
Topics: 6

PostPosted: Wed May 11, 2011 8:44 pm    Post subject: is it possible to download a mainframe file through rexx? Reply with quote

Actually I want to download some mainframe files in .txt format through rexx. Every day i have to do same thing. Is there any automation idea for this instance? Please supply some code.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed May 11, 2011 9:05 pm    Post subject: Reply with quote

Using REXX alone? No. However, REXX, as in other languages, can call other programs and services. What programs/services/utilities do you use to perform this task? What type of server are you transferring files to? What type of processes/services does it require? What type of networking protocol is in use for this process? Do you have to navigate through firewalls? Does the data or transfer process need to be encrypted for security reasons? Does the data requires EBCDIC-to-ASCII translation? What are the rules necessary to accomplish this?

As you can tell, you've left out WAY too many details to even start guessing on an automation process here.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Thu May 12, 2011 7:49 am    Post subject: Reply with quote

How are you doing it now? Even file transfer dialogs in emulators provide the ability to transfer multiple files saved in a list. FTP might also be an option as well as the ISPF C/S (option 3.7).
Back to top
View user's profile Send private message
jim haire
Beginner


Joined: 30 Dec 2002
Posts: 140
Topics: 40

PostPosted: Thu May 12, 2011 12:47 pm    Post subject: Reply with quote

Some shops will allow the coding of FTP commands within REXX to download files. The problem with this is that FTP usually asks for a user's userid and password, so there are security problems with that.

Another method of doing this would be to set up batch JCL which performs and FTP and substitute the mainframe file name and .txt file in the JCL using the REXX program and executing a "SUBMIT" on the JCL.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Sat May 14, 2011 1:48 pm    Post subject: Reply with quote

you can schedule an ftp. if mainframe schedulers are not an option then a window scheduler can be used. check solution provided by Ravi - http://www.mvsforums.com/helpboards/viewtopic.php?t=4996&highlight=windows+scheduler&p=24200
_________________
Regards,
Diba
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group