FTP in OS/390 MVS REXX 
Author Message
 FTP in OS/390 MVS REXX

How can I send a file via FTP from an OS/390 MVS system to another
system using REXX?

Thanks for any examples and help,
Regards
Werner Nussbaumer



Tue, 08 Feb 2005 21:23:05 GMT  
 FTP in OS/390 MVS REXX
You have to create an FTP script, and then hand it off to FTP. You cannot
drive TCPIP/MVS FTP in the same manner that you can on OS/2 or W2K.


Quote:
> How can I send a file via FTP from an OS/390 MVS system to another
> system using REXX?

> Thanks for any examples and help,
> Regards
> Werner Nussbaumer



Thu, 10 Feb 2005 15:37:30 GMT  
 FTP in OS/390 MVS REXX
Here is a short example, not necessarily optimal.  This is actually an
external subroutine that I used to use to logon to my workstation and
load the bookmanager books into MVS.
/* Rexx */
Parse Arg prefix user password                  
"ALLOC F(INPUT) REUSE NEW UNIT(VIO)"            
"ALLOC F(OUTPUT) REUSE DA(*)"                    
"NEWSTACK"                                      
Queue user password                              
Queue "lcd 'sys4.books.test'"                    
Queue "LOCSITE recfm=fb lrecl=4096 blksize=4096"
Queue "binary"                                  
Queue "cd /pub/books"                            
Queue "mget "prefix"*.boo (REPLACE"              
Queue "QUIT"                                    
Queue ""                                        
"ExecIO * DiskW INPUT (Finis)"                  
"DELSTACK"                                      
"FTP some.ftp.site.org (EXIT "                
ftprc = rc                                      
"FREE F(INPUT)"                                  
"FREE F(OUTPUT)"                                
return ftprc
/* end of script */

Yours,

Bruce



Sat, 12 Feb 2005 06:11:08 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CobAnal for MVS, OS/390 and z/OS New version

2. OS/390 release test periods Re: default variable initialization under os/390 v2r8

3. Cobol OS/390 to C OS/390 V2R6

4. USA CA Norwalk - IBM MVS-OS/390 Systems Programmer

5. OS/390 or MVS Newsgroups

6. SPLEVEL macro (MVS and OS/390)

7. Smalltalk MVS - OS/390

8. USA CA Norwalk - IBM MVS-OS/390 Systems Programmer

9. USA CA Norwalk - IBM MVS-OS/390 Systems Programmer

10. USA CA Norwalk - IBM MVS-OS/390 Systems Programmer

11. OT - MVS or OS/390 GDG Question

12. IBM MVS/TSO or OS/390 dynamic allocation of dataset name

 

 
Powered by phpBB® Forum Software