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 http://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
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
Joined: 06 Jul 2010 Posts: 650 Location: Whitby, ON, Canada
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.
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.
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.