Goal: export an entire SAS dataset to a tab-delimited text file using a data step.
Problem: In every example that I can find, such as this one, one must specify ev
In a datastep I find when I just want to get a list of the values using
put (_all_)(=/);
For example:
data a;
ref=today();
monday = intnx('week1.2',ref,-1,'Begin');
sunday = intnx('week1.2',ref,-1,'End');
week_end_Friday=intnx('day',(intnx('weeks',ref,0,'end')),-1);
week_end_cur=intnx('weeks',ref,0,'end');
format _all_ weekdate.;
put (_all_)(=/);
run;
/* or to look at a few records or modify for specific conditions */
data test;
set test;
if _n_ < 5 then do;
PUT (_ALL_)(=/);
end;
run;