OS/2 Procedures Language 2/REXX


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


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

Note:    You can move or size the PMREXX.EXE window or select menu-bar 
         choices, the same way that you do with other windows. 
 
 Once the output of the REXX procedure is displayed in PMREXX, you can 
 select the menu-bar choices to take advantage of the following PMREXX 
 browsing features: 
 Menu-Bar Choice             Description 
 File                        Save, Save As, and Exit the process 
 Edit                        Copy, Paste to the input, Clear the output, 
                             and Select All lines 
 Options                     Restart the process, Interactive Trace, and 
                             Set font 
 Actions                     Halt procedure, Trace next clause, Redo the 
                             last clause, and Set Trace off 
 Help                        Help index, General help, Keys help, and 
                             Using help. 
   

Inf-HTML End Run - Successful