Date: Fri, 21 Aug 1998 12:55:38 -0400
Reply-To: "Bartells, Paul" <paul.bartells@US.ORIGIN-IT.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Bartells, Paul" <paul.bartells@US.ORIGIN-IT.COM>
Subject: Re: Optional macro paremeters
Content-Type: text/plain; charset="us-ascii"
>-----Original Message-----
>From: Bartells, Paul
>Sent: Friday, August 21, 1998 11:52 AM
>To: 'ALDEBERT Marc'
>Cc: 'SAS Listserver'
>Subject: RE: Optional macro paremeters
>
>Marc,
>
>Here is a sample.
>
>%MACRO GETDATA (TYPE, FILE, TIME=DETAIL);
> .
> .
> .
>%MEND GETDATA;
>%GETDATA (TYPE=CICS, FILE=CSY01);
>%GETDATA (TYPE=IDMS, FILE=SSY01, TIME=DAYS);
>
>HTH
>
>Paul
>Paul Bartells
>ORIGIN
>Technology in Business
>
>5000 So. Bowen Rd.
>Arlington, TX 76017
>
>(817) 264-8311
>(817) 264-8599 fax
>(817) 216-2390 pager
>paul.bartells@us.origin-it.com
>
>-----Original Message-----
>From: ALDEBERT Marc [SMTP:marc.aldebert@CNET.FRANCETELECOM.FR]
>Sent: Wednesday, August 19, 1998 6:16 AM
>Subject: Optional macro paremeters
>
>I'm wondering if it's possible to pass optional parameters to a SAS
>macro.
>
>My idea is to create a macro : %macro(i,j)
>where i is compulsory and j optional.
>If j is not fed to the macro, it takes a default value.
>
>So the user should be able to type %macro(i) or %macro(i,j)
>
>Is it possible ?
>
|