Joe Zitzelberger wrote:
[snip so the reply does not get rejected]


GetParm  DS    0H
         L     R1,0(,R1)         Get address of PARM field
         LH    R5,0(,R1)         Get length of PARM data specified
         LTR   R5,R5             Anything specified?
         BZ    NoParm            None received
         BCTR  R5,0              Adjust length for MVC
         EX    R5,MoveParm       Move PARM data to internal field
         ...
         ...
MoveParm MVC   ParmData(0),2(R1)
         ...
         ...
ParmData        DS CL100
AjustmentFactor DC H'17'         Used in converting "X" to "Y"


According to the principle of least astonishment, we should not
incompatibly change the rules to benefit a few programs.


What is the purpose of moving the parm to an internal field? That just strikes me as broken as designed (BAD). You cannot change the value, it is truly input only. It also strikes me as more effort than just using the parm inplace in this age of reentrent and reusable code styles.


A software company that runs the same application
for multiple customers might get the customer name
from the PARM field, and then place that value into
an HTML tag, or a print line for a report, or a
title line for a display.

Kind regards,

-Steve Comstock

----------------------------------------------------------------------
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

Reply via email to