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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.