Handle the FIRST mistake before trying to fix the later ones.
2155 WARNING: Truncated record.
Sounds like the source code was truncated and that is what led to the unbalanced quotes that caused the later warning.
Analyze the code to see how many characters per line it has. If you lines of code are too long then rearrange the code to use shorter lines.
Is this code you submitted from some interactive interface? If so which one? SAS/Studio? Enterprise Guide? Plain old normal SAS Display Manager?
Or is this code in a file? What file? How did you tell SAS to run the code from the file? Did you launch SAS from the command line?
NOTE: Any line longer than about 75 characters is too long for humans to read without having to swivel their heads back and forth. That is why newspapers print using narrow columns of text. So keep that in mind when creating your programs and you should never have truncated code lines.
... View more