Hello,
I have a code to read a statement from a text file but sometimes there is no text to read, which in that case I need to insert 0 for each one them. Would someone help me figure out how to do that.
Thanks
Code:
data CDM1.temp_&seed;
infile "c:\CDM1\&commandfile..out" truncover;
input test $21. @;
if test="Information Criteria" then do;
input / / @40 num_fre_par
/ @40 akaike5
/ @40 bayesian
/ @40 sam_siz_adj_bic ;
else input num_fre_par=0 akaike5=0 bayesian=0; this doesn't give me 0 for each missing statement
output;
stop;
end;
drop test;
run;