EXECIO Function -- Syntax and Examples

EXECIO [rcdcnt | *] DISKR filename[startrcdnum | 1] ([FINIS] [FIFO | LIFO | SKIP]

EXECIO [rcdcnt | *] DISKR filename[startrcdnum | 1] ([STEM stemname [FINIS]

EXECIO [rcdcnt | *] DISKW filename[([STEM stemname] [FINIS]]

execio * diskr "c:\config.sys" (stem ConfigLines. finis

reads all the lines in the file "c:\config.sys" into the stem variable ConfigLines.

execio * diskr "c:\config.sys" (finis fifo

reads all the lines in the file "c:\config.sys" into the current REXX queue

execio * diskw "newcfg.lst" (stem ConfigLines. finis

writes all the elements in the stem variable ConfigLines to the file "newcfg.lst" in the current directory

MyCmd = 'EXECIO * DISKR c:\config.sys ( stem ConfigLines. finis' Address TSO MyCmd

passes the contents of the variable MyCmd, which contains the EXECIO command, to the current "subcommand" environment (in this case, "TSO":)

Next