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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!