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

Perferred calling method?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Josh Keller

New User


Joined: 08 Oct 2007
Posts: 36
Location: Columbia, SC

PostPosted: Tue Dec 13, 2011 2:27 am
Reply with quote

When I'm calling an external routine (cobol or otherwise) in a REXX, I usually program an ISPF SELECT PGM statement. But I'm also aware I can just issue a call directly.

Question: Which is preferred / better / has less overhead?

Code:
"ISPEXEC SELECT PGM(MYPROG)"

"CALL 'MY.LOADLIB(MYPROG)'"

"CALL *(MYPROG)"

My assumption is that the ISPF SELECT has more overhead, but I'm not 100%. I'd figure one of you wise "older" guys would have some proven insight.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Dec 13, 2011 2:41 am
Reply with quote

Overhead or not, note that using an ISPF service of course implies that ISPF is active.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 13, 2011 7:27 pm
Reply with quote

IMHO for REXX <application> performance should not be the main concern
just use reasonable good sense (for example frown upon large stems)
as far as <calling> load modules the best flexibility is usually achieved by the Address <environment> construct as described here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ikj4a370/2.5.9?ACTION=MATCHES&REQUEST=linkmvs&TYPE=FUZZY&SHELF=IKJ4BK90&DT=20060626210253&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
great interface for parameter passing, see for example the IGGCSI interface
and the overhead of the different methods for <calling> a program should not be usually a concern

the only method to avoid , unless ISPF services are needed, is the ISPF SELECT approach
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Dec 14, 2011 7:25 am
Reply with quote

Code:
"CALL 'MY.LOADLIB(MYPROG)'"

"CALL *(MYPROG)"


Between those two, my preference is to have a setup exec that allocates the right application libraries and then later in the application logic use
CALL *(myprog).
It is a maintenance concern rather than performance.

1. if the setup is actually in linklib, then the rexx program can run without changes.

2. if the application is distributed to other systems, then the rexx program can run without changes. Otherwise, you might have RACF access problems.

3. You want the customization to be done in a short setup exec, rather than have the installer search and make changes throughout your rexx programs.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts calling a JCl inside a JCL JCL & VSAM 3
No new posts Calling IEHPROGM from REXX CLIST & REXX 7
Search our Forums:

Back to Top