Starting the PMREXX Program

You can start the PMREXX program and a REXX procedure from an OS/2 command prompt. You do this by typing PMREXX and a target procedure name that generates an output or input function, as follows:

PMREXX  filename.CMD arguments

where the arguments and .CMD extension are optional.

Here is a REXX program named SAMPLE.CMD that calls for system environment variables to be displayed when the various arguments are indicated.

/**/
'@ECHO OFF'
env = 'OS2ENVIRONMENT'
Parse Arg all
Do i=1 to words(all)
   word = translate(word(all,i))
   Say
   If value(word,,env)=''
     Then Say '"'word'" is not in the environment!.'
     Else Say word'="'value(word,,env)'".'
End

To display the current PATH and DPATH statements in the CONFIG.SYS file in a PMREXX window, type the following:

PMREXX Sample PATH DPATH

┴╓: You can move or size the PMREXX.EXE window or select menu-bar choices, the same way that you do with other windows.