dear all,
I am doing a proc transpose. the number of columns is based on the data.
If I put a query afterwards I would fetch all transposed columns: select *.T1 from . . . .
HOW do I do this with query builder ??
Kr,
Herman
EG's point-and-click Query Builder does not currently support generating "SELECT *" syntax. It currently explicitly lists each column that you select in the Query Builder GUI. So, you can select all the columns in the Query Builder GUI, but the generated SELECT statement will look like "SELECT col1, col2, ..., coln", rather than "SELECT *".
Adding explicit support for "SELECT *" to the Query Builder is on our roadmap. It is a reasonable thing to want to do.
Thanks for the feedback.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
You are facing the (well one of the several) reason why not to transpose data. SQL is built to work with few columns (i.e. small structure, lots of records), in fact SAS also works that way with by groups, although its a lot more flexible. So unless you want that data that way for a report and no furter processing, then just don't transpose it. It is far simpler to code with a normalised data structure, than to mess around trying to work out what columns are present etc.
EG's point-and-click Query Builder does not currently support generating "SELECT *" syntax. It currently explicitly lists each column that you select in the Query Builder GUI. So, you can select all the columns in the Query Builder GUI, but the generated SELECT statement will look like "SELECT col1, col2, ..., coln", rather than "SELECT *".
Adding explicit support for "SELECT *" to the Query Builder is on our roadmap. It is a reasonable thing to want to do.
Thanks for the feedback.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
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!
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.
Ready to level-up your skills? Choose your own adventure.