If you run a production SAS environment or even a development environment for that matter, it is nice to have a specific location for all logs to be written and managed. ALTLOG helps achieve this. The ALTLOG option can be set numerous ways, but we typically utilize 2. 1. As an option on the...
Read more »
Tags: afhood group, alternative log, altlog, analytics, analytics consulting, command line, consulting, log directory, log management, SAS, sas administrator, SAS Code, SAS log
Posted in SAS | Comments Off
One of the issues with SAS for many IT departments is the lack of integration with service oriented architecture (SOA). The good news is with many new features coming online with versions 9.X+ are service oriented. Lets look quickly at the Proc SOAP procedure now available. For those SAS programmers out there that aren't familiar...
Read more »
Tags: AAG, AFHood Analytics Group, analytics consulting, consulting, dynamic, function, General Chatter, http post, output to file, proc soap, SAS, SAS Code, SOA, web service, webservices, XML
Posted in SAS | Comments Off
Fastexport is the fastest way to get large data out of teradata. Fastexport utilizes multiple connections to deliver data and therefore speeding up the transfer of data between Teradata and SAS. Here are a few examples of fastexport. /* libname statement*/ libname teradb teradata username=&un password=&pw dbsliceparm=all; /* explicit sql */ proc sql; connect...
Read more »
Tags: AAG, AFHood Analytics Group, analytics, analytics consulting, conditional processing, databases, dbms, dbslice, dbsliceparm, fastexport, SAS, SAS Code, SAS log, teradata
Posted in SAS | Comments Off
Ever heard of ‘where also’? Neither did we.
We have to give credit to the guys at the SAS Community.
‘Where also’ allows you to add a series of where statements. The use acts like a single where statement with the and condition....
Read more »
Tags: AAG, AFHood Analytics Group, analytics, analytics consulting, conditional processing, conditional programming, dynamic, function, SAS, SAS Code, where, where also, where statement
Posted in SAS | Comments Off
As any good analyst knows, working with data is not the problem. Good analysts have the skill necessary to combine, split, merge, slice, aggregate, or summarize data any way you can imagine. However, is that enough? Probably not.. What good does data do if you can’t communicate its meaning in a logical way. The...
Read more »
Tags: AAG, AFHood Analytics Group, analytics, analytics consulting, cheezy graphs, Data Applied, excel, General Chatter, html, juice analytics, marketing, measurement, mysql, Oracle, pivot tables, SAS, teradata, tools, visualization
Posted in SAS | Comments Off
The INTNX function increments dates, times, or datetimes by specific or custom intervals. Here is the basic syntax for INTNX: INTNX(interval, start, increment) The interval can be a set value like – DAY, WEEK, DTWEEK, YEAR, etc. You can also specify a custom interval. We will post more on that later. The multiple...
Read more »
Tags: AAG, add days, add months, add time, add years, AFHood Analytics Group, alignment, analytics, analytics consulting, beginning, date function, date increment, date shift, date start, datetime, decrease, dynamic, end, increase, increment, intnx, middle, same, SAS, SAS Code, sas function, time, timestamps
Posted in SAS | Comments Off
The DIM function returns the number of literal elements in an array. It functions against multi-dimensional arrays as well as one-dimensional arrays. 1-dimensional array example DIM(array_name) Multi-dimensional array examples DIM(m_array) -> returns the number of elements in the first dimension of the array DIM5(m_array) -> returns the number of elements in the 5th dimension...
Read more »
Tags: AAG, AFHood Analytics Group, analytics consulting, conditional processing, dim, dim function, do loop, do loop processing, do loops, dynamic, function, loops, multi-dimensional array, one-dimensional array, SAS, SAS Code, sas function
Posted in SAS | Comments Off