SAS Programming Simple help on LIBNAME Statement

Job ID: 34999196

Budget: $10 – $30 USD

Hi SAS Experts, I have the below Libname statement. I don't want to hardcode the year 2022 in the libname statement, I want to pass that as macro variable. i.e., %let year = 2022. Can you help me on how to use this macro variable on libname statement?

libname LIB1 'aaa/bbb/ccc/ddd/2022/fff';

Please test your code first, if its working ok, then contact me on chat.

I'd like replace 2001 as a macro variable.
Related categories: SAS R Programming Language