Online File
Rick Aster: Professional SAS Programming Logic: Contents
* ELP.SAS Reads data file of ELP members, combines with data of Yes members and computes frequencies. Rick Aster January 2000 Input text file: MEMBERS2 Output SAS data file: CENTER.ELP Temporary SAS data file: WORK.BANDS *; OPTIONS LINESIZE=75 NOCENTER PAGENO=1; TITLE1 'ELP Members'; * Data step creates SAS data file CENTER.ELP from input text file MEMBERS2. *; DATA CENTER.ELP; INFILE MEMBERS2; LENGTH NAME $ 24 INSTR $ 16 NATIONAL $ 24; INPUT NAME & INSTR & NATIONAL & JOINAT; LABEL NAME='Name' INSTR='Instrument' NATIONAL='Nationality' JOINAT='Joined At'; RUN; * Print SAS dataset. *; PROC PRINT DATA=CENTER.ELP LABEL; ID NAME; VAR JOINAT INSTR NATIONAL; RUN; TITLE1 'Yes and ELP Members'; * Combine ELP and Yes members in one SAS dataset. *; DATA BANDS; SET CENTER.YES CENTER.ELP; RUN; * Print combined SAS dataset. *; PROC PRINT DATA=BANDS LABEL; ID NAME; VAR JOINAT INSTR NATIONAL; RUN; * Compute frequencies. *; PROC FREQ DATA=BANDS; TABLES INSTR NATIONAL INSTR*NATIONAL; RUN;