Hi,
I created a number of numeric variables (which calculate based on previous variables) and all but one is displaying. I used a putlog statement to see what was happening on the back end and the variable and corresponding observations are being displayed appropriately in the log, BUT are displaying in the results as a missing number. Any suggestions on how to trouble shoot this?
Thank you for any help and your time -
"Any suggestions on how to trouble shoot this?" - Start by following how to post a question. Provide test data in the form of a datastep. Then provide the code you are running, and the log. Also explain why the output does not match your expectations. Could be any number of things.
"Any suggestions on how to trouble shoot this?" - Start by following how to post a question. Provide test data in the form of a datastep. Then provide the code you are running, and the log. Also explain why the output does not match your expectations. Could be any number of things.
I used a putlog statement to see what was happening on the back end and the variable and corresponding observations are being displayed appropriately in the log, BUT are displaying in the results as a missing number.
Somewhere between your PUTLOG and the results something changes? Check the code for the missing variable.
Without code or anything else, this is going to be a game of 20 questions.
Ok sorry about that. I should know better by now about posting questions without code.
I actually just closed the data set right before the final variable and created a new one which just creates the final var and that seemed to solve the problem. So maybe I was placing my statements in an order that was not making SAS happy?
Not sure but as always, I do appreciate the time and help. Next time, I promise to post my code with my questions.
Thank you again -
Again without code this is a guess, but you can't replace a data set while it's open. Make sure to check your log in the future, the errors are usually noted there.
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.