Hi The original code is below and I tried to make these code to a macro: data work.split_data; array a[2] _temporary_ (0.5,0.5); array b[2] $ _temporary_ ('train','validation') ; set combine_data; run; The macro I made is below and I keep getting errors. Can anyone help? %macro data_split(dataset,probs,labels); data work.split_data; array a[2] _temporary_ &prob; array b[2] $ _temporary_ &labels; set &dataset; run; %mend; %data_split(work.combine_data,probs=(0.5, 0.5),labels=("a", "b")); Thank you!
... View more