hi whyel,
i checked my code twice, before posting in forum.
you are telling that "you can not make a macro simply by putting %macro."
Then tell me, how we can make a macro?
Plz explain.
I want to learn that thing from you !
we can use any macro variables also in a macro depending on our requirement:
%macro monthly(table=);
data &table;
infile "C:\Documents and Settings\xisguest\Desktop\lobs.txt";
input LOB $ STATE $;
run;
%mend;
%monthly(table=lobs);
anyway, plz execute that code on your computer and reply me if there are any errors.
plz check everything, before commenting anyone. :):)
i know macros upto some extend.
i think, i need not learn basics of macros once again !!!!!!!!!
what i posted is the solution for AOrtega's problem.
i got this log, after executing my code with sas9.2
1 %macro monthly;
2
3 data lobs;
4 infile "C:\Documents and Settings\xisguest\Desktop\lobs.txt";
5 input LOB $ STATE $;
6 run;
7
8 %mend;
9
10 %monthly;
NOTE: The infile "C:\Documents and Settings\xisguest\Desktop\lobs.txt" is:
File Name=C:\Documents and Settings\xisguest\Desktop\lobs.txt,
RECFM=V,LRECL=256
NOTE: 7 records were read from the infile "C:\Documents and Settings\xisguest\Desktop\lobs.txt".
The minimum record length was 6.
The maximum record length was 6.
NOTE: The data set WORK.LOBS has 7 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.04 seconds
cpu time 0.01 seconds
... View more