View previous topic :: View next topic
|
Author |
Message |
srihariba
New User
Joined: 08 Apr 2009 Posts: 4 Location: Bangalore
|
|
|
|
I'm using following statement in my rexx program
INTERPRET "zir"CO "=" ACTV
When I run the rexx program it is showing the following error
IRX0043I Error running CALLSTPR, line 251: Routine not found
I have already verified if any libraries are missed in my rexx module |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think that INTERPRET may be a TSO/E command, and as such will need to be processed using IKJEFT01 in batch. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
start the trace before the INTERPRET.
LIkely, ACTV was assigned some text that looks like a call to CALLSTPR. |
|
Back to top |
|
|
srihariba
New User
Joined: 08 Apr 2009 Posts: 4 Location: Bangalore
|
|
|
|
Thanks
I did solve the problem
ACTV was a string which was having space between values
like "A B"
This was the reason for error... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
This was the reason for error... |
Sorry, your explanation did not explain the situation. How did 'A B' with a space cause a routine not found error? |
|
Back to top |
|
|
srihariba
New User
Joined: 08 Apr 2009 Posts: 4 Location: Bangalore
|
|
|
|
If you have a string with spaces in between INTERPRET will assume
text after space to be another verb : Reason for Routine not found |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
INTERPRET will assume text after space to be another verb |
In you example, text after a space is just more text. It will not cause a call to a routine.
I had doubts about the explanation, so I tried it.
Code: |
/* REXX */
trace('r')
CO = 1
ACTV = "A B"
INTERPRET "ZIR"CO "=" ACTV
say zir1 |
I did not get a 'routine not found' error.
Code: |
3 *-* CO = 1
>>> "1"
4 *-* ACTV = "A B"
>>> "A B"
5 *-* INTERPRET "ZIR"CO "=" ACTV
>>> "ZIR1 = A B"
*-* ZIR1 = A B
>>> "A B"
6 *-* say zir1
>>> "A B" |
I think your real data must have been something like :
or
|
|
Back to top |
|
|
|