Program to Create the SAS Data Set PATIENTS2

LIBNAME CLEAN "C:\CLEANING";

DATA CLEAN.PATIENTS2;
   INFILE "C:\CLEANING\PATIENTS2.TXT" PAD;
   INPUT @1  PATNO  $3.
         @4  VISIT  MMDDYY10.
         @14 HR      3.
         @17 SBP     3.
         @20 DBP     3.;
   FORMAT VISIT MMDDYY10.;
RUN;

Get Cody’s Data Cleaning Techniques Using SAS® Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.