Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.



Dear all, proc means data=dsn noprint completetypes; class trtmntgroup /preloadfmt; output..

Answer / vivek

Can use CLASS or BY. However if BY is used then the dataset
should be sorted first.

The _FREQ_ variable is automatically generated by SAS and
shows the number of observations for each level of the
CLASS variable.
The _N_ variable is automatically generated by SAS. It is
initially set to 1, and it increments by 1 every time the DATA
step iterates.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More SAS Interview Questions

what is prime numbers? how we can get plc write sas code?

5 Answers   Icon,


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?

4 Answers  


what is sas enterprise intelligence architecture? : Sas-bi

0 Answers  


Hi... this is chandu, did MSc Microbiology, trying to get job in SAS tool, PLZ Tell me whether IT industries will give consider my education to gain a job....?

2 Answers  


Which is the best training institute for SAS in hyderabad.

112 Answers   Stansys Software Solutions,


What SAS statements would you code to read an external raw data file to a DATA step?

6 Answers   Accenture,


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers  


what is conditional processing?

4 Answers   Accenture,


In which format does Date stores in sas..? What is the use of DATE in SAS.?

3 Answers   TCS,


why is a stop statement needed for the point=option on a set statement? : Sas programming

0 Answers  


what are the sites did u refer for enquiries and doubts for SAS

2 Answers   UBS,


in data set200 observation how to take 110,150,170 using sql procedure?

7 Answers   Accenture,


Categories