/****************************************************************************** * Programme : No Input File? No Problem: How to Generate and Read SAS Data Sets from Scratch * Reference : EXAMPLE594 * Source : https://www.wearecas.eu/en/sampleCode/EXAMPLE594 ******************************************************************************/ /* --- BLOC 1 --- */ data work.shoes; set sashelp.shoes; where sales>500000; run; proc print data=shoes; run; /* --- BLOC 2 --- */ data investment; begin='01JAN1990'd; end='31DEC2009'd; do year=year(begin) to year(end); Capital+2000 + .07*(Capital+2000); output; end; put 'The number of DATA step iterations is '_n_; run; proc print data=investment; format Capital dollar12.2; run; /* --- BLOC 3 --- */ data concat; set sashelp.nvst1 sashelp.nvst2 sashelp.nvst3; run; proc print data=concat; run;