Thursday, January 3, 2008

Using file name within a SAS macro

infile "c:\Documents and Settings\All Users\Documents\NetFlixChallenge\training_set\&&MID&i...txt" dsd dlm=","
missover truncover firstobs=2 ;

/* Note the importance of && prior to the macro variable MID1, MID2, ..., MID17770, three dots before txt, and the double quotes (" ") for file name */

No comments: