View previous topic :: View next topic
|
Author |
Message |
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Hi,
Could you tell me what is wrong with this Code ?
/* REXX A */
TRACE('R')
SAY THIS IS 'A'
CALL 'T0920KE.PDS.REXX.PROGS (CALLB)'
SAY THIS IS 'A' AGAIN
EXIT 0
I am getting the below Error Message..
8 *-* /* CALL THROWMSG */ /*WORKS */
9 *-* CALL 'T0920KE.PDS.REXX.PROGS (CALLB)'
9 +++ CALL 'T0920KE.PDS.REXX.PROGS (CALLB)'
IRX0043I Error running CALLREXX, line 9: Routine not found
Please help. Thanks. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IRX0043I Error running CALLREXX, line 9: Routine not found
Is the called module in the same library as the execution module.
If not, is the library where the called module is resident concatenated into the SYSPROC and/or SYSEXEC DD's
What exactly are you doing here. What code is the called module.
Also look at the syntax of the code that you are using. |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Hello Expat,
Yes, Both the Called Module and the Calling Module reside in the same Library 'T0920KE.PDS.REXX.PROGS' and
Yes, This Library is concatenated to SYSUPROC (User PROC) - Not SYSEXEC or SYSPROC.
When i do a CALL CALLB - It works just fine...
Thanks for your help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes, the correct syntax usually works well |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Hi Expat,
I found this in QW.. Was trying to check if this worked...
FUNCTION
The CALL command loads and executes programs in executable form.
SYNTAX -
CALL 'dsname(member)' 'parm'
CAPS/ASIS NOENVB/PASSENVB
Required - Either DSNAME or MEMBER name or both.
Defaults - DSNAME - If no DSNAME is used, PREFIX.LOAD is used as the
DSNAME. If '*' is used, the Link List will be
used to locate the MEMBER.
MEMBER - If no MEMBER is specified, TEMPNAME is used.
Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I quite often use SORT or ICETOOL in my REXX
|
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Ok Expat,
Its really a mystery to me as to what is wrong with this Syntax..
7 *-* /* THROWMSG */ /*WORKS */
8 *-* /* CALL THROWMSG */ /*WORKS */
9 *-* 'CALL 'T0920KE.PDS.REXX.PROGS(CALLB)''
9 +++ 'CALL 'T0920KE.PDS.REXX.PROGS(CALLB)''
IRX0043I Error running CALLREXX, line 9: Routine not found
***
A CALL CALLB seems to be working just fine - which proves that this library is already a part of SYSUPROC... Please help.
Thanks. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
There is a link to the REXX manuals at the top of the CLIST/REXX forum as a sticky.
Take a look through them. They are for z/OS 1.7 but still basically the same as the latest edition. |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Thanks Expat,
Finally, Made it work... Coded it this way..
ADDRESS TSO "CALL 'T0920KE.PDS.REXX.PROGS(CALLB)'"
And it abended with -S806 (Load not found) - which is fine because
The CALL command loads and executes programs in executable form ONLY.... Hope I in right in saying this...
>>> "CALL 'T0920KE.PDS.REXX.PROGS(CALLB)'"
IEW4007I FIND FOR MODULE CALLB FAILED BECAUSE DIRECTORY ENTRY IS NOT VALID F
OR A LOAD MODULE.
CSV003I REQUESTED MODULE CALLB NOT FOUND
CSV028I ABEND806-04 JOBNAME=T0920KE STEPNAME=TSOUSER
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=806 REASON CODE=00000004 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
beware, beware, beware ...
1) Address TSO "CALL ...."
is quite different from a plain
2) CALL
(1) invokes the TSO call command
(2) is a Rexx keyword instruction
Quote: |
3.0 Chapter 3. Keyword instructions
...
3.3 CALL
3.4 DO
... |
so the conclusion is wrong,
You are comparing oranges to shoes! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
enrico-sorichetti wrote: |
so the conclusion is wrong,
You are comparing oranges to shoes! |
Aha, that explains why my feet are so damp |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You are lucky then that I didn' t say
compare whale' s excrements to caviar |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Try EXEC command rather than CALL command. |
|
Back to top |
|
|
|