Please provide a PROC CONTENTS and a PROC PRINT (of the first 10 observations) of your new DEBT_DATA data set so we can determine the cause of the problem.
Thanks,
DW
@dw_sas was right in his suggestion of how to fix your problem.
But you still have a few issues in your code.
data data;
set data;
%let start=1983;
%let end=2017;
data data;
set data;
format date year4. ;
date = "01jan&start."d;
do until (date > "01jan&end."d);
output data;
date = intnx('year',date,1);
end;
run;
I changed the variable name from date to myDate to make the code more clear.
See below:
@Lok07 did this solve your issues?
It works.
Thank you so much.
The problem was in date function when i verified my data i found that the ancient date function create date from 1983 to 2017 but for each debt's value
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.