Search Results

158 résultats trouvés Page 6 / 16
Code SAS
Voir

ODS Event Map Generation

ods markup file='test.xml' tagset=event_map ; proc print data=sashelp.class ; run ; ods _all_ close ;

Code SAS
Voir

Creating a list of macro variables with PROC SQL

proc sql noprint; select distinct name into :STUDENT_LIST separated by ' ' from sashelp.class; %let NUM_STUDENTS = &sqlobs; quit;

Code SAS
Voir

Using SAS Macro Variable Lists to Create Dynamic Data-Driven Programs

data _null_; set sashelp.class end=eof; length student_list $200; retain student_list; student_list = ; /* Concatenate the current value of NAME to STUDENT_LIST. */ if eof then do; /* Add a CALL SYMPUTX statement to create the STUDENT_LIST macro variable. */ /* Add ano...

Code SAS
Voir

PROC RANK In-Database with SAS/ACCESS for Hadoop

libname mycdh hadoop server='quickstart.cloudera' user=cloudera password=cloudera schema='default'; data mycdh.class; set sashelp.class; run;

Code SAS
Voir

Excel Export and External Script Execution

proc export data=sashelp.class outfile="c:\sas\class.xls" dbms=excel; quit;

Code SAS
Voir

Data Flow Analysis with SCAPROC

data x ; set sashelp.class ; run ;

Code SAS
Voir

Data Flow Analysis with SCAPROC

data y ; set sashelp.class ; run ;

Code SAS
Voir

Test of the _existVar.sas macro

%initTestcase(i_object=_existVar.sas, i_desc=Test for numeric variable age) %let rc=%_existVar (sashelp.class ,age ,N ); %endTestcall; %assertEquals(i_expected=1, i_actual=&rc., i_desc=Numeric variable age exists) %endTestcase;

Code SAS
Voir

Test of the _existVar.sas macro

%initTestcase(i_object=_existVar.sas, i_desc=Test for character variable age) %let rc=%_existVar (sashelp.class ,age ,C ); %endTestcall; %assertEquals(i_expected=0, i_actual=&rc., i_desc=Character variable age does not exist) %endTestcase;

Code SAS
Voir

Test of the _existVar.sas macro

%initTestcase(i_object=_existVar.sas, i_desc=Test for variable name) %let rc=%_existVar (sashelp.class ,name ); %endTestcall; %assertEquals(i_expected=1, i_actual=&rc., i_desc=Variable name does not exist) %endTestcase;