How do you use the do loop if you don’t know how many times you should execute the do loop?
No Answer is Posted For this Question
Be the First to Post Answer
Explain translate function?
How would you identify a macro variable? : sas-macro
do you prefer proc report or proc tabulate? Why? : Sas programming
What are the default statistics that proc means produce?
What is the function of Stop statement in a SAS Program?
If you’re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
What do the PUT and INPUT functions do?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT SAS Training in Data Management at InfoSchool Bangalore
Have you ever used the SAS Debugger?
Tell different ways to create Macrovarible?
3 Answers Accenture, PharmaNet i3,
libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak
/*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