Posts Tagged ‘ function ’

Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

April 19, 2011
By

Usually, we're content to use a pseudo-random number generator. But sometimes we may want numbers that are actually random-- an example might be for randomizing treatment status in a randomized controlled trial.The site Random.org provides truly rando...
Read more »

Tags: , , , , , , , , , ,
Posted in SAS | Comments Off

Making SOAP calls from SAS! Integrating with web services

March 31, 2011
By

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: , , , , , , , , , , , , , , ,
Posted in SAS | Comments Off

Top 10 most powerful functions for Proc SQL

January 28, 2011
By
Top 10 most powerful functions for Proc SQL

Proc SQL is actually not a standard SAS procedure but a distinctive subsystem with all features from SQL (structured query language). Equipped with it, SAS upgrades to a full-fledging relational database management system. In addition, Proc SQL always ...
Read more »

Tags: ,
Posted in SAS | Comments Off

Proc Fcmp(4): Binomial tree vs. Black-Scholes model

December 12, 2010
By
Proc Fcmp(4):  Binomial tree vs. Black-Scholes model

The very truth is that SAS has limited financial functions. Thanks to SAS Institute, they finally added some option pricing functions in the base module of SAS 9.2, such as Black-Scholes put/call functions, Garman-Kohlhagen put/call functions, etc. Thu...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off

Proc Fcmp(2): a subroutine for Binomial-CRR model

December 5, 2010
By

Problems: Quote for six-month American style euro currency options on plain vanilla, Maxand 〖Max〗^0.5. Exchange rate S_0=$1.3721 /euroSix-month continuously compounded inter-bank rates: r=0.4472%,r_f=1.2840%.Assumptions:The exchange r...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off

Find the ‘right’ SAS functions

December 2, 2010
By
Find the ‘right’ SAS functions

How many functions SAS has? Well, it sounds like a job interview question. For SAS 9.2, by querying the system dictionary (sashelp.vfunc or dictionary.functions), the exact answer is 946, including all functions and call routines. There are two types -...
Read more »

Tags: , ,
Posted in SAS | Comments Off

Default value to macro variable

October 12, 2010
By

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: , , , , , , , , , , , , , , , , ,
Posted in SAS | Comments Off

Leading Zeroes

September 16, 2010
By

Here's a situation that comes up pretty often. You receive a file that contains zip codes. It's an excel file and you need to create a SAS data set out of it, so you can do some nifty market analysis. No problem, you clickety clickety through the SA...
Read more »

Tags: , ,
Posted in SAS | Comments Off

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: [email protected]

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.