I know I've done this before, but I'm having trouble doing something that most 
of you will say should be simple.  I have some JCL that executes a program in 
batch, and I want to create a REXX that does it in the foreground - allocates 
the datasets, runs the program, then fetches the output and displays it in 
View.  The program requires something in the PARM, and I'm  having trouble 
remembering the syntax for that.  Here's what I've tried:

  
+-----------------------------------+------------------------------------------------------------+
  + call '<program>,<parm>'           | Error running <exec>, line <nn>: 
Routine not found         |
  
+-----------------------------------+------------------------------------------------------------+
  + address LINK '<program>,<parm>'   | RC -3 (routine not found)               
                   |
  
+-----------------------------------+------------------------------------------------------------+
  + '<program>','<parm>'              | Error running <exec>, line <nn>: 
Unexpected "," or ")"     |
  + address LINK '<program>','<parm>' |                                         
                   |
  
+-----------------------------------+------------------------------------------------------------+
  + call '<program> <parm>'           | Error running <exec>, line <nn>: 
Incorrect call to routine |
  + call '<program>' '<parm>'         |                                         
                   |
  + call '<program>','<parm>'         |                                         
                   |
  
+-----------------------------------+------------------------------------------------------------+
  + '<program> <parm>'                | Program returns RC and complains it 
can't see the PARM.    |
  + '<program>,<parm>'                |                                         
                   |
  + '<program>' '<parm>'              |                                         
                   |
  + address LINK '<program> <parm>'   |                                         
                   |
  + address LINK '<program>' '<parm>' |                                         
                   |
  
+-----------------------------------+------------------------------------------------------------+

Unless I go to LINKMVS or LINKPGM (and I don't know what those are for), I 
think I've used up all the possible combinations.  What am I missing?

---
Bob Bridges, [email protected], cell 336 382-7313

/* You do not examine legislation in the light of the benefits it will convey 
if properly administered, but in the light of the wrongs it would do and the 
harms it would cause if improperly administered.  -Lyndon Johnson */

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to