Hi there everybody,i'm to trying to get the system date into a control variable from within a PAS procedure, and then extract year and month from this value in order to use them as filters to a query, by doing this the procedure can be scheduled monthly to read and load only data that corresponds to the actual month and year,can anybody give me some advice? I just got the date into a control variable using this code:
SET CONTROL fecha CLOCK
But i want to extract the components like year and month from this value, or get the year and month values in 2 separate variables.
I will be very thankfull if anybody can help me.
Greetings from Guatemala!