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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.