Can you use a macro within another macro? If so how would
SAS know where the current acro ended and the new one
began?
Answer / kiran
Yes, we can use a macro with in another macro
for example:
%MACRO REPORT; ---MACRO
statement 1;
statement 2;
....
....
%MACRO REPORT1();--BEGINING OF NEW MACRO "REPORT 1" WITH
IN "REPORT" MACRO
%MEND REPORT1;---STATEMENT TO TELL THE END OF REPORT1 MACRO
%MEND REPORT;----STATEMENT TO TELL THE END OF REPORT MACRO
| Is This Answer Correct ? | 4 Yes | 0 No |
i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.
data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x*y / chisq nopercent nocol norow PLCORR; RUN; If we run the code, we have Polychoric Correlation = 0.9054 in the last table. I want to extract this particular entry with the value. Means I will create one dataset in which this value will be stored/extracted. I need your help in coding this. Please help me out.
Can you explain the process of calendar?
What SAS statements would you code to read an external raw data file to a DATA step?
What data sets do you need to produce the report?
What is the difference between input and infile statement?
When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
Below is the table. Required to be output should be the highest number of each student_id. Example. Student_id Subject Marks 1 Hindi 86 2 Hindi 70 3 English 80 . Calculate sum and average marks for each group of student_id Example. Student_id Subject Marks Total Marks Average 1 English 40 181 60.33333 2 English 67 196 65.33333 3 English 80 160 53.33333 PLEASE PROVIDE THE CODE OF ABOVE PROBLEMS
What other SAS features do you use for error trapping and data validation?
How we can create SAS USER DEFINED CODE?
how to handle in stream data containing semicolon in it?
How do i read multiple spaces in datasets?