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.


 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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