Date: Tue, 13 Dec 2005 08:32:58 -0800
Reply-To: syam <syam1919@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: syam <syam1919@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Passing by reference
In-Reply-To: <BAY101-F690915177D5A0738C4926DE390@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"
Thanks a ton for sloving this problem.
I have made little change in the code as my dataset contains
characters.Here as below
%MACRO TEST( MEDIA_CODE1 = ) ;
%PUT &MEDIA_CODE1 ;
%MEND TEST ;
%MACRO NUM_OBSER( START= , END= ) ;
DATA _NULL_ ;
SET CSYAM.file_data ;
do ind = &start to &end ;
IF ( Unique_Index = IND ) THEN
CALL execute ('%TEST( MEDIA_CODE1 = "' || Media_Code||'" )' ) ;
end ;
run ;
%MEND NUM_OBSER ;
%NUM_OBSER( START = 1 , END = 2 )
I have little doubt, is it does matters if we place %MACRO TEST(
MEDIA_CODE1 = ) after %MACRO NUM_OBSER( START= , END= ) ; ? I am
tlking about timing, could you explain little more on this. so that i
can take care of it in future.
Once again Thanks a lot!
Syam