DataFlux Data Management Studio 2.5: User Guide

SAS Code Node

Use a SAS Code node to write and store SAS code that will be executed on a SAS Workspace Server. You can insert this node into the flow of a process job at a point where SAS processing is needed. For more information about the tabs at upper left of this dialog, click the following links:

You can set the advanced properties for the SAS Code node on the Inputs tab. The advanced properties used by this node include:

Specifying Passwords

There are several ways to supply a password for the SAS Workspace Server that is specified on the Settings tab for the SAS Code node.

If you enter a password in the password field on the Settings tab, then the password will be encoded and stored in the node variable SAS_PASSWORD.

If you want to set the value of SAS_PASSWORD dynamically, you can use a source binding to specify the job node that will update the value of SAS_PASSWORD. Note that you will have to encode the password yourself. For example, you can bind the SAS_PASSWORD input variable to a process job variable or to a node output variable of another node in the same stream.

The general steps are as follows: 

  1. Encode the password.

    For DataFlux Data Management Studio 2.4, encode the password using EncryptPassword.exe. This utility can be found in the bin directory for DataFlux Data Management Server 2.4. For DataFlux Data Management Studio 2.5, access a SAS session and use the SAS procedure pwencode to generate the encoded password.
  2. Store the encoded password somewhere, perhaps in a flat file, a database table, or a macro variable in macro file.
  3. If you stored the encoded password in a macro variable, then you can directly reference it in the properties window of the SAS Code node by going to the Inputs tab, selecting SAS_PASSWORD, and in the initial value type %%name_of_my_user_defined_macrovar%%.

    If you stored the encoded password it in a file or database, then you could use an Expression node to read the encoded password and store it in a node output variable of the Expression node. In the SAS Code node, you would then bind SAS_PASSWORD to the specific node output variable of the Expression node.

Documentation Feedback: yourturn@sas.com
Note: Always include the Doc ID when providing documentation feedback.

Doc ID: dfU_CFSASCode.html