You may have accidentally deleted your original post, so you need to repeat the questions(s) here.
You should be able to EDIT and existing post by placing your cursor over the 3 line icon next to the subject line of the post and selecting "Edit Reply" from the drop down list.
Or click on REPLY to respond to an existing post, even one of your own.
The posted log appears to have ALL of the actual code inside of a macro. That means that the log shows reduced details. You can get a more detailed log by submitting this code BEFORE the line where you execute a macro:
Options MPRINT;
%dmcas_run_srv;
options NOMPRINT;
the NOMPRINT turns of the details.
Then show that log.
One strongly suspects that you may not have written the macro in question so solutions may difficult to implement. There are multiple warnings that your data is not as the program expects. The first is the top with the warnings about different lengths of same named variables.
Of especial concern to my eye is the warning about the EVENT_VALUE and _FMTVAR_ variables. When the data value length is 1 it is quite often a sign that all of the values may have been missing in a data source. However since the things that would complain about such involve two data sets being combined the particular code doing so becomes important in that you could be truncating values. So you want to find the set used as DATA, look at the source and determine why those lengths have changed and if indeed EVENT_VALUE and _FMTVAR_ has correct or any values.
The second items of concern are the Uninitialized variables. That means you have code that lists the variables in some place but there are no values assigned. That may again point to a problem with a data source.
Your log also shows many places where you have a data set with one observation. I have a gut feeling that that is part of what is leading to the first actual ERROR
ERROR: The function MAX requires at least 2 arguments. There are too few arguments for the function MAX.
Reenter the corrected program or enter "QUIT;" to exit procedure.
Where something is expecting to find the maximum of two or more items that were not created properly prior.
That error message is like the cause of the next one as the step caused an error so the expected output data set wasn't created and everything following fails.
... View more