LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 ? >


Back to: Top of message | Previous page | Main SAS-L page