Thanks for the input, both. I'll keep the DRPC in the back pocket for the 
moment.
I've got ftp_rexx on my CMS id and am studying it to understand how to do the 
basics that I want.
It's documented really well but I seem to be slow at understanding the syntax 
for this stage.

I've got an MVS userid, @MYID, and a dataset named @MYID.BIG.DATASET
password = (my MVS password...)
remote_host = MVS.OUR.SYSTEM.COM
local_file = BIG.FILE.B

I've been doing this for years:

/*----------------------------------------------------------*/
/* Setup the FTP subcommands to be issued...                */
/*----------------------------------------------------------*/
ftpcmd.1  = login_id password                                 
ftpcmd.2  = 'cd ..'                                            
ftpcmd.3  = 'cd'  dataset                                          
                                                               
/*----------------------------------------------------------*/ 
/* Working with another IBM host, so set up the transfer    */ 
/* MODE and TYPE for EBCDIC data -- for an MVS host.        */ 
/* an MVS host.                                             */ 
/*----------------------------------------------------------*/ 
ftpcmd.4  = 'mode b'                                           
ftpcmd.5  = 'BINARY'                                           
ftpcmd.6  = 'type e'                                           
ftpcmd.7  = 'get' remote_file local_file                       
ftpcmd.0  = 7                                                  
                                                               
'PIPE STEM ftpcmd. | APPEND LITERAL quit| STACK'               
                                                               
/*----------------------------------------------------------*/ 
/* Issue the FTP command, and save it's return code.        */ 
/*----------------------------------------------------------*/ 
'PIPE COMMAND FTP' remote_host '(EXIT|' ,                      
     'STEM OUTPUT. | > FTP OUTPUT A |' ,                       
     'ALL />>>RETR/ ! /succ/ | CONSOLE'                        
ftp_rc = rc




Now, simply taking the above for granted that I've been doing for years without 
really thinking about the little bits, I just need to transport the above into 
the ftp_rexx stage and I'm in business.
(Could take a wee little while, but I'm sure I'll get it).


Thanks for the tip on the pipelines home page, this Steve Hayes stuff is marked 
"new".  Is that how I've missed it all this time?  I thought that I had that 
pipelines page pretty well memorized.

John


-----Original Message-----
From: CMSTSO Pipelines Discussion List [mailto:[email protected]] On 
Behalf Of John P. Hartmann
Sent: Thursday, August 25, 2011 11:56 PM
To: [email protected]
Subject: Re: FTP user exit, ultimately a PIPE stage?

Bruce, when I installed my 5.2 system using a Linux FTP server, I had
to rewrite the ftp stuff. I sent the fixed stuff back to Endicott, but
I never got a reaction, so I have no idea whether the fixes have made
it to the VM doenload page.

So thee may be a caveat that DRPC works only with a VM server.

On 26 August 2011 02:01, Bruce Hayden <[email protected]> wrote:
> To add another to John's list, see the DRPC package on the VM
> downloads page.
> http://www.vm.ibm.com/download/packages/descript.cgi?DRPC  While the
> package description says it is a DDR to Pipes interface, it also
> includes and documents ftpput and ftpget stages that are used for z/VM
> installation.

Reply via email to