Where is WORKREC defined in the macro's prototype? By chance is it specified by the &A parameter?
-----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of [email protected] Sent: Saturday, August 04, 2012 8:54 AM To: [email protected] Subject: Attributes Test In Macros I was looking for an easy way to test a Marci Variable on the Prototype Statement. The Symbolic Variable coud be Numeric or Alphbetic. Heres a quick macro I put together to expalin this: MACRO ACLEAR &L=256,&A=VSAMWORK,&I=00 LA R15,&L Number of Bytes to clera LA R14,&A Target Address to clear LR R0,R14 Sourece Address to clear LA R1,X'&I' INITIALIZATION CHARACTER MVCL R14,R0 Initialize Work Area * MEXIT MEND I would Like to Use ne Symbolic &L and be able to test It for a Nemeric of Alpha value If It Numeric I could generate LA R15,&L If its Alphabetic I could generate LA R15,L'WORKREC Obviously I could have defined two Symbolis one for Numeric and One for Alpha. Looking at the TYPE Attributes for Macros I dont see A convient wayof achieveing this. Maybe I dont understand all the Type Attributes. Does any one have any suggestions as to use One Symbolic Parameter in a Macro Prototype Statement and be able to generate a different Instruction depending if the Value is Numeric Or Not. Paul D'Anelo
