IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error IRX0043I when CALLing another REXX Program...


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 4:05 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 25, 2010 4:13 pm
Reply with quote

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
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 5:15 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 25, 2010 5:35 pm
Reply with quote

Yes, the correct syntax usually works well icon_biggrin.gif
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 7:27 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 25, 2010 7:32 pm
Reply with quote

I quite often use SORT or ICETOOL in my REXX
Code:
"CALL *(SORT)"
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 7:59 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 25, 2010 8:06 pm
Reply with quote

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
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 8:13 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Nov 25, 2010 8:16 pm
Reply with quote

the statement call <some library>(<some member>)
works only for LOAD modules
I am sure about that, for a quick and dirty reply I did not check about COMPILED REXX

the library search order for REXX <scripts> is completely different

everything is explained here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/4.2.1?SHELF=IKJ4BK80&DT=20060626210253#HDRDUP0010

(*) I did not clone my reply, karthik posted while I was reading the manual icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Nov 25, 2010 8:22 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 25, 2010 8:25 pm
Reply with quote

enrico-sorichetti wrote:
so the conclusion is wrong,
You are comparing oranges to shoes!
Aha, that explains why my feet are so damp icon_lol.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 27, 2010 6:07 pm
Reply with quote

You are lucky then that I didn' t say
compare whale' s excrements to caviar icon_biggrin.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Nov 29, 2010 9:59 pm
Reply with quote

Try EXEC command rather than CALL command.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top