Skip to main content

Add Record(s) Remotely Redirected from STDIN (for z/OS) - UNIX

Add Record(s) Remotely, Using a Definition File Redirected from STDIN (for z/OS) for UNIX

In this example, a definition load file named MY.UEM.DATA(UEMDEF) is used to add one or more records to the databases of a remote UEM Server. The contents of the file resemble those shown in Definition File Format - UNIX.

Universal Command is used to execute UEMLoad on the remote UEM Server's system. It redirects standard input (stdin) from a data set allocated to the UNVIN ddname. This eliminates the step of copying the data set to the remote system before executing UEMLoad.

//STEP1    EXEC UCMDPRC
//UNVIN DD DISP=SHR,DSN=MY.UEM.DATA(UEMDEF)
//SYSIN DD *
-host dallas
-userid joe
-pwd ahzidaeh
-cmd "/opt/universal/bin/uemload -add"
/*

SYSIN Options

The SYSIN options used in this example are:

Option

Description

-host

List of one or more hosts upon which a command may run.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-cmd

Remote command to execute.

-add

Writes one or more new event definition and/or event handler records to the appropriate database.

Components

Universal Command Manager for z/OS

UEMLoad Utility for UNIX

Universal Event Monitor Server for UNIX