BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello,

 

If I have a big data( more than 3000 000 observations ) for every year, and I have more than 20 years.

I want to make a graph from a many big tables without making :

 

data Tab;

  set T1 T2 T3 T4  ... Tn;

run;

 

 

 

5 REPLIES 5
LinusH
Tourmaline | Level 20
Because you don't want to duplicate the data?
Storing time series of data in one table is often convenient since reduces the steps to out it together each time.
But, do what you are suggesting but as a view instead.
Data never sleeps
LineMoon
Lapis Lazuli | Level 10

Thank you.

Yes, I do not want to duplicate data likes this :

 

I do not want to do this :

 

data tab;

  set T1 T2 ....Tn;

run;

 

"Storing time series of data in one table" it can be more expenssive, I will have a big data.

I want to make my graph without making any concatanation..

 

 

ballardw
Super User

Without specifying what graph and options you need it is difficult to provide exact help. However, If your final graph is to have Year as a component it may be that what you should do is summarize each year of data into a separate summary data set, make sure there is a year variable in the summary, then combine those summarized sets before graphing.

 

There really isn't going to be much hope of getting a graph from multiple sets as none of the SAS graphing approaches I am aware of support more than a single input data set.

 

I usually summarize data before graphing anyway so that I know exactly what is being calculated as any of the graph procudure's summaries usually fall afoul of a data gotcha somewhere with my data.

Reeza
Super User

If you want to use all your data, you need to process all your data.

This can be as indicated, either stack your data together and process. Depending on your set up, 60 million rows may not be much. I regularly worked with a dataset that was 30 million per year - after removing multiple entries.

 

A second method is to process each data set individually and stack the results - the loopy way - usually accomplished via a macro.

 

A third method is to create a view such that the data is only combined for the analysis and then not stored permanently. 

http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a001278887.htm

 

 

 

LinusH
Tourmaline | Level 20
Concatenation must take place if you want a single graph output.
If you don't want to store the data concatenated the only option I see is a view. Should be sufficient.
Data never sleeps

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!

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
  • 5 replies
  • 991 views
  • 3 likes
  • 4 in conversation