BookmarkSubscribeRSS Feed
anirudhs
Obsidian | Level 7

Hi i am looking for some of the following creating of the new columns in query builder tagged with the dd from todays date.

As this column will be created after the join.

e.g.

dataset1

column name: x_12,y_12,z_12 

 

 

*Note : dataset1 is of 12th march 2018

 

new data set

Dataset2: x_12,y_12,z_12,x_13,y_13,z_13

 

*Note: dataset2 contains columns names of 13th march2018.

2 REPLIES 2
LinusH
Tourmaline | Level 20
For this specific situation you can create a macro variable that holds the required date for variable naming.
But this itches a bit. I mean, how will your data set look the 14th? Do you add another three columns (and potentially drop the 12th ones)?
I don't think that query builder is suited for such dynamic data set structures.
And, IMO in 99% of the cases such structures are unnecessary. Have a date column instead, and then solve any reporting needs in another tool/way.
Data never sleeps
anirudhs
Obsidian | Level 7
no im not dropping any column, i just looking alternate way in query builder for dynamic structure.
Yes i know this can be done by putting the date column ..but the dataset size will increase on daily basis vertically .... as the records are around 40lakhs
while when you increase the data set horizontally then the no. of observation remains the same. only variable increases.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 714 views
  • 0 likes
  • 2 in conversation