/* PROC DIF to read/write DIF files */ /*******************************************************************\ | Copyright (C) 1997 by SAS Institute Inc., Cary, NC, USA. | | | | SAS (R) is a registered trademark of SAS Institute Inc. | | | | SAS Institute does not assume responsibility for the accuracy of | | any material presented in this file. | \*******************************************************************/ filename test '/tmp/myfile.dif'; /* Conversion of a SAS dataset to a DIF File */ proc dif dif=test data=sasuser.houses; run; /* If you would like the names of the SAS variables written as the first line of the DIF file, you would use the following code: */ proc dif dif=test data=sasuser.houses labels; run; /* Conversion of a DIF File to a work dataset */ proc dif dif=test out=work.houses; run; /* If you would like the first row of the DIF file ignored (this is usually the case if the DIF file was written with the first line as variable names), then use the following code: */ proc dif dif=test out=work.houses skip=1; run;