BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
TomKari
Onyx | Level 15

Here's an option:

 

Assuming your variables are Fruit and Letter:

 

1. Sort by Fruit;
2. Use the "Data" | "Transpose..." task:
   - Letter as the Transpose variable
   - Fruit as Group by
3. Use a Query Builder task:
   - new "Computed Column" | "Advanced Expression"
   - catx(",", Column1, Column2)

 

SASNE
Obsidian | Level 7

Yes it works, Thanks Tom

Kurt_Bremser
Super User

@SASNE wrote:

Hi Reeza,

 

Yes, just wondering if there is any function like select top X under Tasks-> Data,

 

as less coding as possible.

 

Thanks


You can limit the number of observations in the output in the Enterprise Guide Query Builder. So you would need to create queries for both tables that limit to 1000 obs, and then concatenate them with Append Data.

Or you could type five lines of code and be finished in a minute.

 

Not wanting to work with SAS code means not really wanting to work with SAS at all, because you miss out on 95% of the power of the SAS system.

Stop being a button-pusher and become a SAS User.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2248 views
  • 7 likes
  • 4 in conversation