Xref: utzoo comp.lang.rexx:443 comp.lang.asm370:814 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ux5.lbl.gov!chertzer From: chertzer@ux5.lbl.gov (Cynthia Hertzer) Newsgroups: comp.lang.rexx,comp.lang.asm370 Subject: help needed passing params from a C program to a REXX EXEC Message-ID: <10916@dog.ee.lbl.gov> Date: 13 Mar 91 23:22:51 GMT Followup-To: comp.lang.rexx Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 45 X-Local-Date: Wed, 13 Mar 91 15:22:51 PST Hi folks, I am writing an X windows FTP interface on a machine running VM/XA. I'm looking for ways to pass variables from a C program to a REXX exec. The C program should get the userid, password, etc. from the user. The C program then calls the REXX exec and passes the the userid/password as parameters so that the REXX exec can call FTP with the appropriate args. My working REXX EXEC looks like this: /* * FTPCMD EXEC * This exec downloads a file to a workstation and prints an FTP * return code */ 'MAKEBUF' QUEUE 'myuserid mypassword' QUEUE 'put myfile myfile' QUEUE 'quit' 'ftp myhost (exit' SAY 'Ready(FTP rc='rc');' 'DROPBUF' EXIT I would like to stack myuserid, mypassword, myfile, and myhost before I call the REXX EXEC. Questions: 1) (Any C programmers out there?) Does anyone know a way I can avoid the REXX part entirely? 2) Page 121 of VM/SP _System Product Interpreter Reference_ says I can use PLISTS. I assume this means I have to write an assembly module to be called by the C module before it calling the REXX EXEC. Is this correct? Also, can someone send me an example of using PLISTS? Please reply by email to chertzer@ux5.lbl.gov Thank you! Cynthia Hertzer chertzer@ux5.lbl.gov chertzer@UCBCMSA.BITNET