Hmm, I recently converted a bunch of assembler subroutines to be re-entrant and I put the following as the first line of each module:
PUNCH ' SETOPT PARM(REUS=RENT)' All of them are assembled with the GOFF option and I've not run in to any problems. Perhaps its not an issue as long as all of the "punches" are done prior to any actual assembler code?? Frank ________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Don Poitras <[email protected]> Sent: Friday, August 5, 2016 8:41 AM To: [email protected] Subject: Re: Question about the COBOL compiler Just a heads-up for those that have used PUNCH to do this kind of thing for years in assembly. It's not supported for 64-bit XPLINK (or any time that the GOFF option is used.) See: http://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.asma400/punch.htm PUNCH instruction - IBM<http://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.asma400/punch.htm> www.ibm.com The PUNCH instruction creates a record containing a source or other statement, or an object record, to be written to the object file. >>-+-----+--PUNCH-- ... In article <985915eee6984740ae93f8495c624c6c23b8e10...@jscpcwexmaa1.bsg.ad.adp.com> you wrote: > Unlike HLASM and predecessors, there is no "PUNCH" command to output > arbitrary "cards" to the object output from COBOL. > About all I can think of is to go ahead and submit the compile/link job that > the panels produce, then cancel the job before it completes, then use SJ from > SDSF to edit the JCL to add the ALIAS statement to the LKED SYSIN DD. > Nothing automated, but it will get the job done. > HTH > Peter > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Hardee, Chuck > Sent: Thursday, August 04, 2016 5:22 PM > To: [email protected] > Subject: Re: Question about the COBOL compiler > Compiler version: PP 5655-G53 IBM Enterprise COBOL for z/OS 3.4.1 V3R2 > What I need is this: > INCLUDE OBJLIB(PROGRAMA) > ALIAS ENTRYB(NTRYPTB) > NAME PROGRMA(R) > Our compile panels generate the INCLUDE and NAME statements. > However, I need to have the ALIAS in there as well. > Our panels don't allow for additional statements like ALIAS and I don't want > to dig into them and add the support for them. > I suspect few, if any, other than me in this special usage, will ever need > something like this. > As to dynamic or static, not really relevant, but for the record, all of our > programs are, by standard and policy, compiled with DYNAM enabled. > C- > Charles (Chuck) Hardee > Senior Systems Engineer/Database Administration > EAS Information Technology > Thermo Fisher Scientific > 300 Industry Drive | Pittsburgh, PA 15275 > Phone +1 (724) 517-2633 | Mobile +1 (412) 877-2809 | FAX: +1 (412) 490-9230 > [email protected] | > www.thermofisher.com<http://www.thermofisher.com> > WORLDWIDE CONFIDENTIALITY NOTE: Dissemination, distribution or copying of > this e-mail or the information herein by anyone other than the intended > recipient, or an employee or agent of a system responsible for delivering the > message to the intended recipient, is prohibited. If you are not the intended > recipient, please inform the sender and delete all copies. > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Bill Woodger > Sent: Thursday, August 04, 2016 5:14 PM > To: [email protected] > Subject: Question about the COBOL compiler > Somewhat (when you have a "batch compile - a compile of a load of separate > programs in one hit). But not really, there was a bit of recent discussion of > this here, a topic by Frank Swarbrick. > Which compiler are you using? You want to CALL dynamically, or statically? > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > This message and any attachments are intended only for the use of the > addressee and may contain information that is privileged and confidential. If > the reader of the message is not the intended recipient or an authorized > representative of the intended recipient, you are hereby notified that any > dissemination of this communication is strictly prohibited. If you have > received this communication in error, please notify us immediately by e-mail > and delete the message and any attachments from your system. -- Don Poitras - SAS Development - SAS Institute Inc. - SAS Campus Drive [email protected] (919) 531-5637 Cary, NC 27513 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
