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

IRXLOAD Sample Example


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

New User


Joined: 13 Dec 2012
Posts: 14
Location: India

PostPosted: Tue Apr 01, 2014 6:49 pm
Reply with quote

Hi,

I am looking for sample IRXLOAD code. My purpose is to load a particular exec routine in the Internal block (INstorage control block). I surfed the entire internet but did not find anything useful on IRXLOAD. Only theoritical concept of IRXLOAD is given. I even tried the ASM program from www.cbttape.org/xephon/xephonm/mvs9802.pdf but unfortunately it is not working. I even refered the 'Practical usage of MVS rexx' by Anthony.S.Rudd but there also the theoritical concept of IRXLOAD is given and not any practical example. It will be better if the implementation of IRXLOAD from PL/I program is being shared.

The whole purpose of this is I want to write file from IMS online service. In batch the file can be written but I need to find an way to write a file from IMS online program. And through IRXLOAD I can load an exec in the memory and can invoke this exec from IMS online program using IRXEXEC. But loading of the exec using IRXLOAD is the challenging part that I am facing
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Apr 01, 2014 7:49 pm
Reply with quote

Quote:
The whole purpose of this is I want to write file from IMS online service.


the description of the requirement is pretty poor.

Quote:
And through IRXLOAD I can load an exec in the memory and can invoke this exec from IMS online program using IRXEXEC. But loading of the exec using IRXLOAD is the challenging part that I am facing

unfortunately there is the prerequisite of a TSO environment
Back to top
View user's profile Send private message
iqbal.mallick

New User


Joined: 13 Dec 2012
Posts: 14
Location: India

PostPosted: Tue Apr 01, 2014 8:10 pm
Reply with quote

Thanks for your reply and sorry for my poor description but i am looking for sample IRXLOAD sample code that is being called from pli program. I would really appreciate if you could help in this regards
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Tue Apr 01, 2014 8:48 pm
Reply with quote

Do you have the approval of your IMS systems programmer to do this? Ours would be extremely unlikely to allow an online program to write to an external file. One (of many) reasons they would cite is that there would be no way to guarantee the integrity of the external file in the event of a transaction failure.

Another approach would be to change the online program to ISRT a transaction (via an express PCB) which would then run an MPP (which could be Rexx) to do the work. With enough persuasion our IMS guys might approve this technique, but would probably want the transaction to run in a 'special' MPR to keep it out of the way.

The traditional approach is to write the data to a DB2 table or IMS data base and then run another process (probably a BMP) to unload the data.
Back to top
View user's profile Send private message
iqbal.mallick

New User


Joined: 13 Dec 2012
Posts: 14
Location: India

PostPosted: Tue Apr 01, 2014 9:09 pm
Reply with quote

I think i can manage an approval from our IMS group. Actually i have develop a code coverage tool(to track the flow of program for a particular test case) for pli programs for my project. The tool is working fine for batch program and the flow is being written into a file. Seeing the success of the tool in case of batch my project wants me to develop it for online services. Once i thought of DB2 tables but i dont want to restrict my tool for any particular DB2 table as my project wants to circulate this tool to other accounts and projects. So i was thinking of using files. I have all the design and testing done for online service, the only challenge I am facing is loading the Exec through IRXLOAD. I went through a lot of materials but could not find a sample IRXLOAD from pl/i program. I am so close in finishing the tool but got stuck to IRXLOAD.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Apr 01, 2014 9:27 pm
Reply with quote

the irxload is a performance tweak ...
preload a REXX script so that it will be in storage for the rest of the TSO session
and it would be the second step.

the first one would be to invoke the rexx scripts.

how do You plan to setup the REXX environment ???
Back to top
View user's profile Send private message
iqbal.mallick

New User


Joined: 13 Dec 2012
Posts: 14
Location: India

PostPosted: Tue Apr 01, 2014 9:49 pm
Reply with quote

Will IRXEXEC will not take care in setting up the rexx environment when called from Pl/i? May be I may be wrong but when I called IRXEXEC from a sample pli program it was able to write some content into a file that was not being declared inside the pli program.

Enrico could you please send me some sample codes for preloading rexx exec for TSO session? Will this work when IRXEXEC invokes the exec from pli? I will be glad if you could share some sample.
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 Help needed to assemble IMS sample co... ABENDS & Debugging 4
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts Where to get sample for processing RM... PL/I & Assembler 2
No new posts A sample of exit program for exit XMN... CICS 2
No new posts Can I use sort to select sample recor... DFSORT/ICETOOL 3
Search our Forums:

Back to Top