Handout04 Stat3900/4950 Today we will discuss PROC FORMAT and the data set options LABEL and FORMAT. We will also discuss PROC FREQ and the Chi-Square Test. As an example we will consider the CSU Hayward Faculty Development Technology Survey 2002 and 2003. See http://www.sci.csuhayward.edu/~esuess/FacDev/index.htm The first example program00.sas shows how to read an .txt file into SAS. You will need to create using a text editor the DATALINES in the file testdata.txt and you will need to change the path to the file. ------------------------------------------------------------------------------ program00.sas DATA D1; INPUT SURVEYID q1A_EMAIL; DATALINES; 1 4 2 4 3 2 ; PROC PRINT DATA=D1; ID SURVEYID; VAR q1A_EMAIL; RUN; DATA D1A; INFILE 'D:\FacDevSurvey\Data\testdata.txt'; INPUT SUR q1A_E; RUN; PROC PRINT DATA=D1A; ID SURVEYID; VAR q1A_EMAIL; RUN; ------------------------------------------------------------------------------