How do you debug macros?
Answers were Sorted based on User's Feedback
Answer / prag s.
FROM LITTLE SAS BOOK....
TO DEBUG MACRO WE CAN USE THESE OPTIONS---
MERROR, SERROR, SYMBOLGEN, MLOGIC, MPRINT
OPTIONS MPRINT and so on....
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / rag_uss
to debug macros we can use these options
mlogic, symbolgen, mprint, macrogen.
| Is This Answer Correct ? | 4 Yes | 0 No |
What SAS statements would you code to read an external raw data file to a DATA step?
Dear all, proc means data=dsn noprint completetypes; class trtmntgroup /preloadfmt; output out=tot n=n; format trtmntgroup trtf. ; by vstgrp descending severity; run; This is the code I used for AE table. I got the values without giving the variable ‘trtmntgroup(numeric)’ in var statement. And if I give the var statement for that variable i’m getting the same values.How is that possible? What is the difference between class and var statement? Could any one explain me how does proc means work at the back end. And what is the difference between _freq_ value and N value in proc means. Thanks and regards, Rajesh.
what is the difference between SET and MERGE?
/*i have the following dataset.*/ data score; input marks ; datalines; 10 20 30 40 50 60 70 80 90 100 ; run; Now i should get the result as sum of 1 to 5 i.e(10+20+30+40+50)=150 and 2 to 6 i.e(20+30+40+50+60)=200 and 3 to 7 i.e(30+40+50+60+70)=250 and so on. how to get it. thanks in advance
I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com
which domain is better in sas? clinical trails or banking
If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?
What is the difference between reading data from an external file and reading data from an existing data set?
What is the order of evaluation of the following operators + - * / ** () ???
Approximately what date is represented by SAS date value of 730
what is the basic structure sas administrator? : Sas-administrator
/* This is example of age caluculate wihtout to display perfect days and years in output window */ data age; retain dob "12jun2003"d now "24may2011"d; age1=now-dob; age=(now-dob)/365.25; years=int(age); days1=round((age-years)*365.25); months=month(now)-1; if days1 gt 30 and months in(12,10,8,6,4,2)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month)*30.4375)+1; drop days1 month1 month; end; else if days1 gt 30 and months in (1,3,5,7,9,11)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month) *30.4375); drop days1 month1 month; end; drop age age1; proc print data=age; format dob now date.; run;