Please do not separate error messages for the log of the code. Typically SAS provides diagnostic characters placed in the code for some of these messages and it is much easier to diagnosis with the entire log of the procedure. Copy all of the text for a procedure with all of the notes, not just errors. Then on the forum open a text box using the </> icon that appears above the main message box and paste all the text.
Likely the No matching DO is coming from here:
compute babydate_character ;
count + 1 ;
if mod( count, 2 ) then
call define( _row_, 'style', 'style=[background = cxd9d9d9]' ) ;
else call define( _row_, 'style', 'style=[background = cxe9f3ff]' ) ;
end;
ENDCOMP;
There is nothing indicating a DO or Select prior to that end in the compute block.
Likely the cause of the "Statement is not valid" as well.
... View more