BookmarkSubscribeRSS Feed
elwayfan446
Barite | Level 11

Hi All,

 

I have been a basic SAS user for a couple of years now.  I have learned a lot from everyone in these communities.  I am a certified Base Programmer, however, I use more PROC SQL than anything so I am very rusty on the SAS syntax.  Most datasets I have created have been monthly snapshots of a loan portfolio over the past couple of years.  They are a snapshot in time, not historical.  I have these datasets from each month going backward.

 

I have been asked to start adding analysis to our reporting that tracks trends on things like delinquency as of each quarter for the past year and then project what we can expect over the next year.  We use Tableau for these types of reports and I connect my SAS datasets to them and do the summarization within them.  That being said, I don't really know where to start or where exactly I need to go to learn how to accomplish this type of reporting.  A few questions that come to mind:

 

  1. How does my data need to be set up in order to do this type of reporting?  I have several month end tables, but that seems very difficult to try to pull together for this type of reporting.  I normally pull from each monthly snapshot to show the data at that point in time.  If I insert each record into one table, that is almost 500,000 records for each month.  To append that much each month seems like it would take forever to process.
  2. Where do I learn to do the forecasting and trending?  Is there a way to do that in SAS and then just pull it into Tableau or should that type of thing be done in Tableau?  Tableau seems more of a reporting mechanism and not where the trending itself can be done.  It looks as if there are a lot of tools within SAS and SAS EG to do this type of reporting.

I primarily use SAS EG in my company so that is my primary tool.  I have to learn how to do this somewhat quickly so I am hoping you guys can point me in the right direction to learn.  I don't have a statistics background either, so that is another hurdle I must get over.  I am just a lowly SQL programmer who has learned to use SAS for the past 2 years 🙂

 

As always, thanks for your help.

8 REPLIES 8
HB
Barite | Level 11 HB
Barite | Level 11

I would let SAS do the heavy data lifting and use Tableau for presentation. 

 

Look at this:

https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Calgary-User-Group/Derby-Time...

 

I have never used PROC ARIMA or PROC FORECAST but something like that would seem to be where you would want to go. 

 

500K records a month?  6 million a year?  SAS can probably do that actually. 

 

Edit:  Also this:

http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#tfstart_toc.htm

elwayfan446
Barite | Level 11

@HB, thanks for your reply.  This looks like great information.  I will take a look at that.  My biggest concern with that many records is just how long it will take each month to run the reports with a dataset that large.

HB
Barite | Level 11 HB
Barite | Level 11

I run stuff on 1 million records all the time.  The job I ran a few minutes ago looked like:

 

200 data orphans;
201 set mydata;
202 run;

 

NOTE: There were 519500 observations read from the data set MYDATA.
NOTE: The data set WORK.ORPHANS has 519500 observations and 217 variables.
NOTE: DATA statement used (Total process time):
real time 10.96 seconds
cpu time 5.47 seconds

 

So 6 million records? Under a minute?  I dunno. 

elwayfan446
Barite | Level 11

Interesting.  Do you submit jobs directly on the server?  I actually run all of my queries from SAS Enterprise Guide on my desktop.  I think that may cause a delay.

HB
Barite | Level 11 HB
Barite | Level 11

I don't use Enterprise Manager. I run 9.2.  type a program, hit submit. It used to run faster but now we run it in a virtual desktop so it is just a bit slower. 

elwayfan446
Barite | Level 11

Gotcha.  Our company did away with SAS 9.2 and made us start using SAS EG full time.  Just a different way to do the same thing.  I will research some more and play with the large dataset to see how it performs.

SASKiwi
PROC Star

Do you have access to a remote SAS server or is local SAS on your PC your only option? Once you start getting into millions of records then a remote SAS server is definitely the way to go. BTW the SAS product for forecasting is SAS/ETS.

HB
Barite | Level 11 HB
Barite | Level 11
Our experience has sure been the other direction. Our programs manipulating multi million record files ran faster locally than they do with a remote desktop.

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
  • 8 replies
  • 925 views
  • 1 like
  • 3 in conversation