Question. I have existing code that I am trying to update. It has the following:
It would be helpful to see your code and how you are defining the variables on the Column statement. However, if you want to not repeat college_desc1 at the BREAK line, you can try the following:
compute college_desc1;
if upcase(_break_)='NATION_OF_CITIZENSHIP_DESC' then college_desc1=' ';
endcomp;
Complete procedure code and example input data in the form of a working data step will probably get a workable solution faster.
Complete code is needed because other pieces may be the cause of undesired output.
Is that example of actual output or desired output? If not of desired output then show what the desired appearance is.
It would be helpful to see your code and how you are defining the variables on the Column statement. However, if you want to not repeat college_desc1 at the BREAK line, you can try the following:
compute college_desc1;
if upcase(_break_)='NATION_OF_CITIZENSHIP_DESC' then college_desc1=' ';
endcomp;
Thank you. I will give that a try and let you know the result.
That worked. I thank you for your time and effort.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.