In SAS DI studio I'm attempting to create a macro, and assign a value to it with a user written code transformation. How do I print the value of this macro to test if my code does what I want it to do.
I need a macro that takes a value based on the date when the project is run looking something like:
%let runYear = if month < 6 then year(today) - 1 else year(today)
Normally I would start with something simple like:
%let test = month(today())
And just look what that gives me and work it out, but I don't know how to display the value of 'test' in above example.
I am new to SAS DI studio and I realize this is a simple question but I couldn't find the answer. All I want to know is how to print a value from user written code / how do debug user written code.