Anonymous user
Call a foreign-language function: Difference between revisions
m
→{{header|REXX}}: changed whitespace and used a template for the output section.
m (→{{header|REXX}}: changed whitespace and used a template for the output section.) |
|||
Line 2,226:
=={{header|REXX}}==
The use of the '''address''' statement isn't normally required, but it's shown here as an illustrative example.
<lang rexx>/*REXX program calls (invoke) a "foreign" (non-REXX) language routine/program. */
cmd = "MODE" /*define the command that is to be used*/
opts= 'CON: CP /status' /*define the options to be used for cmd*/
address 'SYSTEM' cmd opts /*invoke a cmd via the SYSTEM interface*/
/*stick a fork in it, we're all done. */</lang>
<pre>
Status for device CON:
|