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 (July 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 2 Jul 2002 16:37:10 -0400
Reply-To:   "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject:   Re: Using a macro variables.
Comments:   cc: "Balint, Jess" <JBalint@ALLDATA.NET>
Content-Type:   text/plain; charset="iso-8859-1"

> From: Balint, Jess [mailto:JBalint@ALLDATA.NET] > Hello all. I have the following code: > if first.consumer_id then do; > %let x = 1; > end; else do; > %let x = x + 1; > end; > bank_card_&x_src = bcrd_src; > bank_card_&x_date = bcrd_date; > Whis is part of it showing up red? Does this mean the SAS > program will stop because of this? Thanks.

eyow! no, no, this won't work.

%PUT X<&X.>; will return: X<x + 1>

what are you trying to do with > bank_card_&x_src = bcrd_src; > bank_card_&x_date = bcrd_date; ?

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov


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