BookmarkSubscribeRSS Feed
ballardw
Super User

@ybz12003 wrote:

I have used the same code, it did not work.   Please see the result I want. 


Doesn't work is awful vague.

Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.

No output? Post any log in a code box.

Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

ybz12003
Rhodochrosite | Level 12

The column 'count' I created was used to check whether the column 'i' was created in the right way.  That was why I leave column 'i' in blank.

Reeza
Super User

You didn’t initially state that, but I see you’ve edited your original post to now say it. This is why ask that you not edit, but post update or new messages instead. Ultimately your choice of course. Either way, changing the name should solve your problem. 

 


@ybz12003 wrote:

The column 'count' I created was used to check whether the column 'i' was created in the right way.  That was why I leave column 'i' in blank.


 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 17 replies
  • 1946 views
  • 1 like
  • 5 in conversation