> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[email protected]] On Behalf Of Clark Morris > Sent: Wednesday, February 17, 2010 12:09 PM > To: [email protected] > Subject: Re: Fastest branch instruction > <snip> > > If this code is in a routine called by a COBOL program, it may well be > smarter to convert the routine to COBOL in a manner that it can be a > nested program. This program bounded by IDENTIFICATION DIVISION and > END PROGRAM should stored in a copy book. If copied in the main > program(s) at the end, the much more efficient nested program call is > issued. To handle unchanged programs, have a source program that has > only the copy statement for the nested program and compile it. I did > this with one installations date routine. For example if the routine > is called FOO with PROGRAM-ID. 'FOO', there would be a copybook FOO > and a source program FOO. >
This is called from COBOL. Transliterating it from HLASM to __efficient__ COBOL might be a wicked thing to do. But, IMO, the COBOL compiler does not generate the best assembler. And if it is nested, then every compile would need to use compile options which are correct for it. Also, any change would require a perhaps massive recompilation marathon. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell [email protected] * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

