How would you code a macro statement to produce information
on the SAS log? This statement can be coded anywhere.

Answer Posted / aravind rangaraj

%put stament is used to print the information about macro
variable references and this statemet is
global.mprint,mlogic symbolgen are system options and used
to print the information in the log to debug the macros

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

name several ways to achieve efficiency in your program? : Sas programming

756


What is a macro routine?

2325


How you can read the variables that you need?

861


How sas treats the dsd delimiters?

938


Give some ways by which you can define the variables to produce the summary report (using proc report)?

817


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.

1986


what is the difference between floor and ceil functions in sas? : Sas-administrator

918


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

759


What is the good sas programming practices for processing large data sets?

857


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.

1665


what are 5 ways to perform a table lookup in sas? : Sas-administrator

974


what are informats in sas? : Sas-administrator

771


How to create an external dataset with sas code?

786


What are the statements that are executed only?

888


Name and describe few sas character functions that are used for data cleaning in brief.

867