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 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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....


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