Hi guys!
Today I was playing with some data and found out a problem. I have 5 data sets in txt format named roh_1.txt, roh_2.txt, roh_4.txt, roh_8.txt and roh_16.txt. It could also be any other number like _1, _3, _10, _11... I would like to make macro which will allow me to import those into SAS. I am familiar with infile option so no need for this part. I am posting code for import but this is not an issue. Of course I could rename files to be 1 to 5 but... Well I don't want to. Can you please give some hints. Thanks
data file1 (drop = snp1 snp2 bp_position1 bp_position2 fid pheno nsnp gustp phom phet) ; length bull_id $15. snp1 $50. snp2 $50. bp_position1 $12. bp_position2 $12.; infile "C:\Users\MajaZmaja\Desktop\roh_4.txt" delimiter=" " firstobs=2; input fid bull_id pheno $ chr snp1 snp2 bp_position1 bp_position2 kilobaza nsnp gustp phom phet @@; run;
... View more