Article View: comp.os.os2.programmer
Article #3026Re: Command in REXX to execute the text in a variable?
From: Tim Francis
Date: Wed, 18 Nov 1992 21:50
Date: Wed, 18 Nov 1992 21:50
39 lines
1771 bytes
1771 bytes
In article <1992Nov18.111554.1243@galaxy.gov.bc.ca>, sasmith@galaxy.gov.bc.ca writes: > >In article <widow.722104795@camelot>, widow@camelot.bradley.edu (Shaun Burnett) writes: > >> xxxxx Program,Filename >> >> where xxxxx is a command that would pass "f:\utils\unzip -v >> g:\aoc.zip" to an environment shell (DOS or OS/2). >> >> Any help would be greatly appreciated. I haven't found a >> "quick reference" that describes all the commands on one page, > How about > > interpret Filename Program > > The REXX interpret command should handle this. Yes, Interpret will handle this, but is unnecessary. One of the beauties of REXX is that unrecognized commands get passed onto the command shell automatically. Thus, you can do the following: Cmd = 'ERASE' File = 'D:\This\is\my\file' Cmd File There's actually very little that REQUIRES the use of interpret. It's a little like GOTO -- very powerful, very easy to misuse. You could use interpret to execute a REXX command dynamically, for example. The following program will allow you to type in (and execute) any REXX commands. Try it - it's useful for learning new REXX commands. /**/ do forever parse pull cmd interpret cmd end -tim
Technical Details
Message-ID:
<19921118.135726.970@almaden.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.comReferences:
<widow.722104795@camelot> <1992Nov18.111554.1243@galaxy.gov.bc.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com From: francis@vnet.ibm.com (Tim Francis) Message-ID: <19921118.135726.970@almaden.ibm.com> Date: Wed, 18 Nov 92 16:50:57 EST Subject: Re: Command in REXX to execute the text in a variable? Newsgroups: comp.os.os2.programmer References: <widow.722104795@camelot> <1992Nov18.111554.1243@galaxy.gov.bc.ca> Reply-To: francis@vnet.ibm.com Organization: IBM Canada Lab, WorkFrame/2 development Disclaimer: This posting represents the poster's views, not those of IBM Lines: 39