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
NOTE: This is a great one we picked up from our friends over at the SAS community. We have run across this literally hundreds of times while programming SAS macros. You need to have a default value for a variable and you don’t want to write another macro to set it if it doesn’t...
Read more »
Tags: AAG, AFHood Analytics Group, conditional processing, conditional programming, default value, dynamic, function, if then, macro coding, macro script, open code, SAS, sas automation, SAS Code, SAS macro, SAS Macros, sas script, string functions
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
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