Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
As Dick said, contact your site support group so you use the site standard compilation process -- otherwise you can get into trouble. When you set up your compile using the materials your site support group gives you, you need to provide input to the linkage editor (binder) to tell it to include the subprogram as part of the calling program's load module -- and you'll need a DD statement pointing to the load library containing the subroutine. Again, this should all be part of the site standard compile process so contact your site support group.
I have conactenated the object modules of the subpgm and mainpgm and Linkedited.I have used the parm as nodynam during the creation of main pgms's object module.Now sub pgm load module is embedded in mainpgm and the pgm is working as expected.