Replacing Items in the Service Directory

You can use the SYSRPC SM REPLACE direct command to replace the names of nodes, servers, libraries and programs defined in a service directory.

SYSRPC SM REPLACE corresponds to the SM REPLACE command you can enter on the Service Directory Maintenance screen described in Commands for Service Directory Maintenance.

SYSRPC SM REPLACE can be used in online and batch mode.

This section contains information on:


Syntax of SYSRPC SM REPLACE

SYSRPC SM REPLACE replace-clause

replace-clause

The replace-clause of the REPLACE command corresponds to the replace-clause of the SM REPLACE direct command.

../graphics/sbo4.gif

ANY
NODE
SERVER
LIBRARY
PROGRAM

../graphics/sbc4.gif

search-string WITH replace-string

../graphics/sbo2.gif

ALL
FIRST

../graphics/sbc2.gif

[WHOLE]

The syntax items are explained in the following table:

ANY Searches for all names specified in the service directory.

This is the default value.

NODE Searches for node names only.
SERVER Searches for server names only.
LIBRARY Searches for library names only.
PROGRAM Searches for program names only.
search-string An alphanumeric search string of up to 32 characters.
WITH Introduces the replace-string.
replace-string An alphanumeric replace string of up to 32 characters.
ALL Replaces all occurrences of the search string found.
FIRST Replaces only the first occurrence of the search string found.

This is the default value.

WHOLE Replaces only occurrences that match the whole search string.

Anmerkung:
The search operation is not case-sensitive.