Every month I receive a data set as a flat-file, and import it into SAS. Last month, it arrived with binary variables stored as True / False instead of 1/0. This month it's back to 1/0, with an apology for the annoyance. I made a custom format like: proc format;
invalue truefalseformat
'True'=1
'False'=0;
run;
data mydata; infile &myfile delimiter = '|' MISSOVER DSD lrecl=32767 firstobs=2; informat aaa $5.; informat bbb truefalseformat.; input aaa $ bbb ; run; and edited my import script for the relevant variables. But now I need to run the proc format code every SAS session that I want to look at the data. How can I change my script so that on or after import the variables are actually changed from True/False to 1/0 in the data and so I don't need to run the proc format code every time? Thanks
... View more