Hi everyone,
How to select each values changed between base & compare dataset out by proc compare outnoequal ;
if value equal to ' X.....' then select variable and row for this values.
i want to select this value to update into another dataset.
Thanks in advance
Can you demonstrate this logic by an example?
@amager wrote:
in outnoequal dataset from proc compare. if value had changed it's equal to 'XXX......' . i want to select that value from _COMP_ to update another dataset by the value changed , to do that exacytly i need to find the variable and id of this changed value .. any suggestions. may be have an easy way
Provide an EXAMPLE. Post two data steps that can be used to create two datasets. Post the PROC COMPARE code to compare them and create an output dataset. Show what the resulting output looks like. Explain what you want to select from this dataset. Explain what format you need it in if the way PROC COMPARE creates it is different from how you need it. Then perhaps someone can help you. But most likely just doing that will show you how to solve the problem yourself.
So if the variable is named FRED then check if it contains any X characters.
if indexc(fred,'X') then ....
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.