HOW TO run a frequencies in SPSS / SAS

In SPSS:

GET

     SAS DATA='D:\DATA\data.sas7bdat'.
DATASET NAME CC WINDOW=FRONT.

FREQ var .

In SAS

Libname data 'd:\data\sas\';
options fmtsearch=(data);

proc freq data= data.example;
table var;
run;

In SAS, it can require more commands due to more speifications are being made, such as: creating a library, specifying where is the format of the data, and then asking for the frequency .

Aditionally,  one can ask for the same table, including the missing values:

proc freq data= data.example;
table var/ missing;
run;

Or can ask for the same table in an html format to be exported:

ods html;
proc freq data=ccalum.ccalumnos;
table i2/ missing;
run;
ods html close;

HOW TO: open a database in SAS / SPSS:

Similarly to SPSS one can call a database and ask for full description of the content.

In the case of SPSS one could do:

GET
     SAS DATA='D:\DATA\data.sas7bdat'.
DATASET NAME CC WINDOW=FRONT.

DISPLAY DICTIONARY .

 

As where in the case of SAS we chould do:

options nocenter;
proc contents position data=' D:\DATA\data';
 run;

'options noncenter' is just giving a format for how the output will look (asking for it be justifyed to the left of the screen).  Only the second syntax line, is mimicing the 'display dictionary', in order to display the contents of the database.

'run' is the simil to execute in the case of spss, or just the ';' in the case of mplus.