Hi !
I wanted to add that each item would be assigned date today () in the format date9. run_date name. In SQL, however, it works in 4gl no, how to change it? I get an undeclared array referenced
data WpisyKW; set tmp_0; if zab_KW_POZ1='' then zab_KW ='BRAK'; if zab_KW_POZ1 ne 'T' then zab_KW ='BRAK'; if zab_KW_POZ1 eq 'T' then zab_KW ='AKTYWNY'; today() as Run_Date format date9.; run;
Have a closer look at Step-by-Step Programming with Base SAS® 9.4.
You need two statements: one assigns the value to the variable run_date, another to attach the format to the variable.
format run_date date9.;
run_date = today();
EDIT: Link inserted
Have a closer look at Step-by-Step Programming with Base SAS® 9.4.
You need two statements: one assigns the value to the variable run_date, another to attach the format to the variable.
format run_date date9.;
run_date = today();
EDIT: Link inserted
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.