Best to start with a fresh SAS session in case it is some previous step that has confused it.
Try submitting a trivial step to make sure it is working.
data test1; run;
Then try to figure out what in your program is confusing SAS. Try doing essentially a binary search. Remove, or commentout with /* */, half of program and see if it runs. If it runs the problem is in the comment section if not it is in the part not commented. repeat until you find the line that is confusing SAs. Note you might need to restart SAS once it starts to fail to continue your testing.
Another thought occurs to me
Sometimes, if you are joining two tables in SQL, or via the DATA step MERGE command, sometimes I do it wrong and instead of getting the desired answer, you get a data set with 1000 times too many observations. You might want to check that, because that could cause later steps to take huge long times. But there's no error in the LOG.
The code you posted in the PDF as a long data step with many statements. So something like
data want;
set have;
if x =1 then y=2;
if z=3 then w=4;
....
if a=4 then b=2;
run;
So to tell if the program is working comment out most of it and see if it works. For example you comment out everything but the DATA, SET and RUN statements.
data want;
set have;
/*
if x =1 then y=2;
if z=3 then w=4;
....
if a=4 then b=2;
*/
run;
If that works then try just commenting out the top half.
data want;
set have;
/*
if x =1 then y=2;
if z=3 then w=4;
*/
....
if a=4 then b=2;
run;
If that works then the bottom statments are probably valid and the mistake is in the part that your removed or commented out.
So comment out the top quarter instead. Repeat until it is clear which statement is the problem.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: