BookmarkSubscribeRSS Feed

How to use your own functions in Data Management Studio

Started ‎06-27-2017 by
Modified ‎06-27-2017 by
Views 999

Data Management Platform is a powerful tool for data cleansing and data integration applications. In Data Management Studio, you can use the Data Job Expression node to run a scripting language to process your data sets in ways that are not built by default. The Expression Engine Language (EEL) provides many statements, functions, and variables for manipulating data.

Note: Expression Language Reference Guide is accessible from SAS Support website.

 

The Expression Engine Language can be used to code inside a Data Job, but can also be used to write your own functions that can then be saved outside of your jobs, and called from any of them.

 

For example, let's say you need to mesure a distance between strings and need to use a Jaro-Winckler distance.

 

First step is to create a text file inside your Data Management Studio etc/udf folder. This file will contain your code, and can be named anything you like. In each text file, you can write as many functions as you like, in that format:

 

 

function myFunctionName return returnType
//function body
end function

In Data Management Studio, anything defined in a text file saved in /etc/udf folder as a function will appear under Expression Node Functions riser, in the Other group:

 

udf.png

 

You can then call this function from any of your new Data Jobs:

udf2.png

 

If these functions are to be called from a job running on Data Management Server, udf files just need to be copied to the same location on the server side.

Version history
Last update:
‎06-27-2017 03:50 PM
Updated by:
Contributors

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!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Labels
Article Tags