I have a code of 4000 lines having base and advance SAS. I have to debug that code. Is there any method or what is the best ways to debug a large code.
Run the code step by step; after each submit:
See Maxim 2
Details. What needs "debugging"?
Have you verified that the starting data is "correct" for the processes you expect to run.
Do you read the LOG when the code runs? That typically is the start of any "debug" process as it will show where you have errors, how many observations are used by steps (if you see 0 that likely indicates a problem with the content of an input data set), result size of data sets. Also warnings and errors. If you are seeing those then share the log.
If you have questions then showing the log with the code and all the messages is the best way to present information. Open a text box on the forum with the </> icon above the message window, copy the text from the log and then paste it into text box. The text box is important as the message windows on this forum will reformat text meaning that the diagnostic indications SAS often provides will not appear in the correct location reducing their usefulness.
Run the code step by step; after each submit:
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.