Calling REXX programs in the CONFIG.SYS

You can call REXX programs in the CONFIG.SYS file by using the CALL statement.
To do this, load the REXX support with (for example) BOS2REXX.EXE prior to the line that calls your REXX program in CONFIG.SYS.

Example:

 
  REM *** load the REXX support
  RUN=E:\OS_2\tools\bootos2\bos2rexx.exe

  REM *** call the REXX program
  CALL=C:\OS2\CMD.EXE /C myprog.cmd

Note that you can only use the non-WPS related functions from REXXUTIL.DLL in programs called in the CONFIG.SYS. Note further, that you must use RxFuncAdd to load each necessary REXXUTIL function by hand -- you cannot use SysLoadFuncs! See the next chapter for an example for using this technique.

(see also the important note at the end of the section Using REXX if booted from diskette and RxFuncAdd)


[Back: Writing filter programs in REXX]
[Next: Example for using REXX programs in the CONFIG.SYS]