Using Macros

If you are using are system and user-created macros, you must create a combined macro file to be able to use macros in Data Management Server. For more information on macros, see the DataFlux Data Management Studio Online Help.

Declaring Input and Output Variables for Data Services

In previous releases of Data Management Server, when running data services, the macros that were passed into a data service were the only ones that would be returned from the service with the final values set. Also, any macro variable was allowed to be passed to the service, whether or not it was actually being used by the service.

Beginning with release 2.2, input and output variables for data services behave similarly to variables of process services and batch jobs. Specifically, only input variables that are declared in a data service job can be passed in, and only final values for declared output variables will be returned. If a variable that was not declared as input is passed into a data service, an error will be returned. To revert to pre-2.2 behavior set the following configuration option in service.cfg file:

DATASVC/IGNORE_DECLARED_VARS = yes

Updating Macros

Each service and job process on Data Management Server reads configured macros as it is started. When a macro changes, it can be updated on Data Management Server without having to restart the server. To update macros on Data Management Server, use one of the following procedures.

Process Services, Batch and Profile Jobs

For process services, batch jobs, and profile jobs using the DFWFPROC process:

  1. In Data Management Studio, select a Data Management Server name from the list of servers in the left pane.
  2. Right-click on the Data Management Server and select unload idle processes from the drop-down menu.


Unload DFWFPROC Processes

Real-Time Data Services

For real-time data services using the DFWSVC process:

  1. Select a Data Management Server from the left pane in (Undefined variable: Primary.Studio).
  2. Select the Real-Time Data Services folder under the Data Management Server instance.
  3. In the right pane click on the Loaded Processes tab.
  4. Select all of the processes under Process ID, and click one of two buttons depending on the status of the job: Unload Process When Idle, or Unload Process:



Unload DFWSVC Processes