Hi, I am new to using SAS Studio and I am not sure how I can keep the “year” variable as a 4-digit year value by using “Year4.” as its format? Currently the "year" in my dataset is numeric (e.g. 2020, 2021, 2022).
Below is my current code:
data Test.tourism;
infile "/home/u59111097/TMA/tourism.csv" dlm=',' FIRSTOBS = 2;
input year vsp pdi puk exuk pop cpisp exsp;
put tourism format year year4.;
run;
Thank you.