Far easier is to use the (free)VMFTP package described earlier.

Mike Walter
Hewitt Associates

(Sent from the wee keyboard on a Blackberry.)


----- Original Message -----
From: "Wakser, David" [[email protected]]
Sent: 09/01/2009 02:44 PM MST
To: [email protected]
Subject: Re: Scripting FTP



You'll have to show the whole EXEC, if you really want us to figure it out. 
Following is one that works fine in z/VM 5.3 (it transfers VM to VM, so ignore 
the SENDSITE command and use what you need). Is it possible that the size of 
the VM is too small?

David Wakser

arg fn ft fm .   /*  file to be sent   */
ip      = "192.168.123.123"       /*  IP address of VM
"CP LINK TCPMAINT 592 592 RR"
"ACC 592 T"
"MAKEBUF"
queue ip
queue "USER Password"         /*  Userid & password of foreign system */
queue "ACCT xyz123"     /* WRITE or MULTI password of foreign 191 disk */
queue "SENDSITE"                 /*  Prevent sending of defaults      */
queue "EBCDIC"                   /*                                   */
 /*  Issue the PUT command   */
queue "PUT" fn || "." || ft || "." || fm   "ABCXYZ.TEST.A"
queue "CLOSE"                    /*  Close conection to VM            */
queue "QUIT"                     /*  Quit from FTP mode               */
"FTP"
return_code = rc
if return_code ¬= 0 then                                              
   do
       say "      Bad return code" return_code "from FTP!"
   end


-----Original Message-----
From: The IBM z/VM Operating System [mailto:[email protected]] On Behalf 
Of Frank M. Ramaekers
Sent: Tuesday, September 01, 2009 5:01 PM
To: [email protected]
Subject: Scripting FTP

Can you script FTP?  Help doesn't mention it.   If I attempt to QUEUE
the commands from a REXX program, I get:

VM TCP/IP FTP Level 540

AMPX014I PROTECTION EXCEPTION
      TRACE BACK OF CALLED ROUTINES
 ROUTINE                          STMT AT ADDRESS IN MODULE
 GETOPTIONS                        157    00EB0B00   FTPARSER
 MAINLOOP                           11    00E0048E   FTMAIN
 <MAIN-PROGRAM>                      1    00DFF0C0   FTP
 VSPASCAL                                 00E32C8A


AMPX011I OPERATION EXCEPTION
      TRACE BACK OF CALLED ROUTINES
 ROUTINE                          STMT AT ADDRESS IN MODULE
 GETOPTIONS                        157    07ED28CE   FTPARSER
 MAINLOOP                           11    00E0048E   FTMAIN
 <MAIN-PROGRAM>                      1    00DFF0C0   FTP
 VSPASCAL                                 00E32C8A

Frank M. Ramaekers Jr.
Systems Programmer                   MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co.   Phone: (254)761-6649
1200 Wooded Acres Dr.                Fax:   (254)741-5777
Waco, Texas  76710






_____________________________________________________

This message contains information which is privileged and confidential and is 
solely for the use of the

intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,

copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have

received this in error, please destroy it immediately and notify us at 
[email protected].

Confidentiality Note: This e-mail, including any attachment to it, may contain 
material that is confidential, proprietary, privileged and/or "Protected Health 
Information," within the meaning of the regulations under the Health Insurance 
Portability & Accountability Act as amended.  If it is not clear that you are 
the intended recipient, you are hereby notified that you have received this 
transmittal in error, and any review, dissemination, distribution or copying of 
this e-mail, including any attachment to it, is strictly prohibited. If you 
have received this e-mail in error, please immediately return it to the sender 
and delete it from your system. Thank you.




The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message, including any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. All messages 
sent to and from this e-mail address may be monitored as permitted by 
applicable law and regulations to ensure compliance with our internal policies 
and to protect our business. E-mails are not secure and cannot be guaranteed to 
be error free as they can be intercepted, amended, lost or destroyed, or 
contain viruses. You are deemed to have accepted these risks if you communicate 
with us by e-mail. 

Reply via email to