Date: Wed, 30 Aug 2006 08:53:38 -0700
Reply-To: sharadnc@GMAIL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: sharadnc@GMAIL.COM
Organization: http://groups.google.com
Subject: how to resolve value of a variable
Content-Type: text/plain; charset="iso-8859-1"
Hi there,
I need some help in solving this problem here....I have a situation in
which I have two variables
which are interlinked say in this fashion where one variables value is
part of the name of the other variable. Now I have to display the value
of the other variable by using the first variable in the put statment..
for eg. look at the commented statement....
This situation is a mock of a problem I got here, where I have to do
everything in the SAME datastep.....mind it that I have no flexibility
of splitting the datastep or create macro variables..
data _null_;
y='FMHK';
var_FMHK='some';
*put var_{value of y}=;
run;
Can anyone think of a solution....
Please let me know....
|