On Fri, 4 Jan 2008 15:27:56 -0600, McKown, John wrote: >> From: IBM Mainframe Discussion List >> [mailto:[EMAIL PROTECTED] On Behalf Of Blaicher, Chris >> >> I always parse right out of the parameter area passed to me by the >> caller. At worst I store the value in R1 so I can get back to it. And >> if I was going to store the data, I would GETMAIN the area >> based on the >> halfword length parameter and then move it. >> >> Chris > >That is what a good programmer will do. It is not what an "average" >COBOL programmer would likely do. My worries for this would be more >about in-house written routines which use PARM than vendor routines.
It's been over 30 years since I was a COBOL programmer, but I'm sure that I never moved the parm that was supplied in the JCL. Yes, I wrote quite a few programs that would accept a parm. The parm area was always coded in the linkage section and processed ther directly. It was accessed with PROCEDURE DIVISION USING or ENTRY USING when using older compilers. What would be the point of moving it? -- Tom Marchant ---------------------------------------------------------------------- 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

