How do you debug macros?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parameters of scan function?

730


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

809


what is the purpose of _error_? : Sas programming

712


If money were no object, what would you like to do?

2789


what is the use of proc sql? : Sas programming

686






describe the interaction table in sas di? : Sas-di

693


What is the length assigned to the target variable by the scan function?

772


Mention the category in which sas informats are placed?

724


Hello, I have PROC SQLs results group by 3 fields and I use SUM and COUNT functions in SQL. The problem is when I try to display my result with PROC TABULATE. I am getting very big numbers. I believe I make a mistake some where in Tabulate. Here is my Proc Tabulate. PROC TABULATE DATA=OUT04_05 FORMAT=12.; CLASS YR CENTRE VISA / PRELOADFMT EXCLUSIVE; VAR NEWUSER FRAUD TRANSFER AUTUSER REISSUE; TABLE CENTRE ALL, (YR ALL)*VISA, (NEWUSER*F=COMMA12. AUTUSER*F=COMMA12. FRAUD*F=COMMA12. TRANSFER*F=COMMA12. REISSUE*F=COMMA12.) / MISSTEXT={LABEL='0'} PRINTMISS RTS=20; FORMAT VISA VISAFMT.; KEYLABEL SUM = ' ' ALL = 'TOTAL'; LABEL YR = 'DATE YEAR' NEWUSER = 'TOTAL NEW ACCT' TRANSFER = 'TOTAL TRANSFER' FRAUD = 'TOTAL FRAUD TRANSFER' AUTUSER = 'TOTAL AUTH USERS' REISSUE = 'TOTAL REISSUE'; When I code it like : NEWUSER*N*F=COMMA12. AUTUSER*N*F=COMMA12. I get same amount numbers but to find a NEWUSER I use COUNT(*) and to find AUTUSER I use SUM(xxxx) function so both result shouldn’t be the same my problem is in this point. Could you tell me where the problem in code is. How can I display my result? TX.

1875


What do the SAS log messages "numeric values have been converted to character" mean?

983


How to convert a numeric variable to a character variable?

721


what other sas products have you used and consider yourself proficient in using? : Sas programming

779


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1558


AE datasets names? how many types?

2151


Differences between where and if statement?

684