IBM Support

SHELL Batch Command and ICON_CONTROL PORT Control Option

Question & Answer


Question

What is the purpose of the new SHELL batch command and ICON_CONTROL PORT control option that are added to IMS™ Connect Extensions V2R3 in APAR PM77360?

Answer

The SHELL command runs a command on a specified target system or datastore. You can use this to automate some procedures such as stopping all the datastores associated with an IMS system across multiple IMS Connect instances.

The format of this command is

SHELL SYSTEM=target,COMMAND='command'

If target is set to the name of an IMS Connect instance then the command is treated as an IMS Connect command, as in this example:

SHELL SYSTEM=HWSOPPS1,COMMAND='STOPIP PLXDH'

If target is set to a datastore name then the command is treated as an IMS Type-1 command:

SHELL SYSTEM=IMSD,COMMAND='/SWITCH OLDS'

The following example shows a series of batch commands to first connect to IMS Connect and then use the SHELL command to query and update a datastore.

CONNECT DNSNAME=LOCALHOST,PORT=4100,HWSID=HWSOPGS1,USERID=BCD1
SHELL SYSTEM=HWSOPGS1,COMMAND='VIEWDS IMSA'
SHELL SYSTEM=IMSA,COMMAND='/SWITCH OLDS'
SHELL SYSTEM=HWSOPGS1,                                             +
     COMMAND='UPDATE DATASTORE NAME(IMSA) STOP(COMM)'    

ICON_CONTROL PORT control option

The command shell connects to an available IMS Connect message port to submit IMS Type-1 commands to a datastore via message exit HWSJAVA0. A dedicated port is needed if you use a TCP/IP routing device such as sysplex distributor, to prevent commands being routed to a different IMS Connect system.

Use the ICON_CONTROL PORT control option to specify a dedicated IMS Connect port which is to be used for routing IMS Type-1 commands that are issued from IMS Connect Extensions. The syntax is:

ICON_CONTROL PORT=nnnnn

Where nnnnn is an OTMA port that is defined in HWSCFG. Ensure that the port is not subject to TCP/IP routing.

Note: If all of the datastores for an IMS system are stopped then there will be no pathway for executing IMS Type-1 commands.

 

Requirements

To use this command with IMS Connect Extensions V2R3 you must apply the fix for APAR PM77360 and restart IMS Connect.

 

Related information

For information about specifying control input data set options, see the Reference section in the IMS Connect Extensions User’s Guide.

For sample JCL and other information about using the batch command utility, see the ‘Utilities and API reference’ section in the IMS Connect Extensions User’s Guide.

[{"Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSAVHV","label":"IMS Connect Extensions for z\/OS"},"ARM Category":[{"code":"a8m0z000000cvYbAAI","label":"IMS Connect Extensions for z\/OS"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
15 November 2020

UID

swg21624191