Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REXX compiled via RXTCOMP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 226
Location: Maryland

PostPosted: Tue Feb 07, 2017 9:41 pm    Post subject: REXX compiled via RXTCOMP
Reply with quote

Sorry, but I cannot find any explanation from available sources.

When already tested REXX code has been successfully compiled using REXXTOOLS RXTCOMP compiler, and then a binary load module created, it fails at run time when trying to call any TSO function, like OUTTRAP or whatever:
Quote:
212 +++ X=OUTTRAP("RES.")
IRX0043I Error running TESTMOD1, line 212: Routine not found

Kindly give me a clue where the external TSO functions (or any other external functions?) must be defined to be used with load module created from a compiled REXX code?
Back to top
View user's profile Send private message

Pedro

Senior Member


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

PostPosted: Tue Feb 07, 2017 9:48 pm    Post subject: Reply to: REXX compiled via RXTCOMP
Reply with quote

What environment are you running it on?

If it is a batch job, remember that you still need to provide a TSO environment.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Tue Feb 07, 2017 10:53 pm    Post subject: Reply to: REXX compiled via RXTCOMP
Reply with quote

I do not know about the REXXTOOLS compiler

but the IBM REXX compiler is very sensitive to the STUB linked into the executable

Using the wrong STUB would usually result in an odd behavior
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 226
Location: Maryland

PostPosted: Wed Feb 08, 2017 10:35 pm    Post subject:
Reply with quote

After long investigation I was able to find the answer as fine print in the Open Software Inc. manual icon_rolleyes.gif
Quote:
Note: If your compiled REXX program utilizes any TSO service, you must run it under IKJEFT01 (the batch TMP).
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Feb 09, 2017 10:27 pm    Post subject: Reply to: REXX compiled via RXTCOMP
Reply with quote

repeating:
Quote:
remember that you still need to provide a TSO environment.


That is, not sure you need a long investigation.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 226
Location: Maryland

PostPosted: Fri Feb 10, 2017 1:03 am    Post subject: Re: Reply to: REXX compiled via RXTCOMP
Reply with quote

Pedro wrote:
repeating:
Quote:
remember that you still need to provide a TSO environment.
That is, not sure you need a long investigation.

0) This requirement might be interpreted as "ADDRESS TSO" which could be executed in compiled version, but did not help to access TSO services.

1) Then, WTF compiled REXX version is needed? The widely used standard REXX instruments unpredictably do not run from successfully(!) compiled REXX (and linked load module).

2) Despite of what manual says, the compiled REXX just fails with S0C4 when started via IKJEFT01, as recommended by manual...

So, finally even "long investigation" did not help so far icon_rolleyes.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8195
Location: East Dubuque, Illinois, USA

PostPosted: Fri Feb 10, 2017 1:39 am    Post subject:
Reply with quote

What did the vendor say when you asked your question there?
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 226
Location: Maryland

PostPosted: Sat Feb 11, 2017 2:34 am    Post subject:
Reply with quote

Robert Sample wrote:
What did the vendor say when you asked your question there?

I am subcontractor, and not supposed to contact the vendor directly.

After some investigation I was able to find the reason. The client's Endevor team provided so called "processor group" to "automatically perform REXX compilation, and link edit the load module". Noone of that support group was able to clarify any minor question.

Further investigation discovered that the "standard processor group" for REXX compilation has internal hardcoded REXX compiler option PREFIX(RXTRXPRC), the one compatible with... calling REXX from COBOL only! The created object/load modules became incompatible with calls from JCL/TSO/Assembler etc.

The Endevor team has been notified of their own problem. So far I use my own JCL to perform REXX compilation. Now it's working as described.

Thank you
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us