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 (June 1996, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 26 Jun 1996 21:46:13 -0400
Reply-To:   Sung-Il Cho <sungil@HOHP.HARVARD.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Sung-Il Cho <sungil@HOHP.HARVARD.EDU>
Subject:   Q (IML): scalar matrix --> macro variable (character) ??

Is there a way to pass a scalar matrix into a macro variable and use it in the same IML session as a character number ??

(In other words, evaluate a matrix and put the result into a character macro.)

e.g.

proc iml; ... x = {1 2, 2 1}; x1 = {5 6, 7 8}; x2 = {9 10, 1 2};

(pseudo code) %let y = x[1,1]; * put a scalar matrix (value unknown) into a macro var; z = x + x&y; * resolve the macro as a character; * (want z = x + x1 );

print z; quit;

I'd appreciate any hint. TIA. ----------------------------------------------------------- Sung-Il Cho 617-432-1147 (voice) 432-0219 (FAX) Dept. of Env Health (Occupational Health Program) & Dept. of Epidemiology, Harvard School of Public Health 665 Huntington Av., Boston MA 02115


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