I likely want something that is really impossible. I would like to write a 
macro which does not specify any parameters, but can dynamically detect them in 
the macro itself. For positional parameters, this could likely be easy via 
&SYSLIST. Something like:

  MACRO
&LBL MYMAC
&LBL EQU *
  LCLA &I
  LCLA &N
&N SETA N'&SYSLIST
&I SETA 1
.LOOP ANOP
  AIF (&I GT &N).MEND
  DC  C'PARAMETER &I = '
  DC  C'&SYSLIST(&I)'
&I SETA &I + 1
  AGO .LOOP
.MEND ANOP
 MEND

But I don't see any way to find and process "keyword" type parameters. OK, 
likely someone is wondering "what is this nit-wit up to?". I want to create a 
"metamacro" for an IBM macro. Basically, I want to make a MYDCB macro which is 
similar to the DCB macro, but with some code wrapped around the DCB macro. And 
I don't want to worry about maintenance to the DCB macro. So I want the MYDCB 
macro to be a "child" of the DCB macro and "inherit" all the DCB macro's 
parameters, adding a few of my own. I then use the IBM macro within my macro, 
passing it all the "unknown" parameters which MYDCB was given but did not use. 
It's a kind of "OOPS"ish concept for HLASM.

OK, somebody put me out of my misery and just tell me it's impossible and I'm 
crazy. I likely need to go to a true OO language such as C++ or Java.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[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

Reply via email to