search cancel

No USSCMD output captured in stem variable

book

Article ID: 239341

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Working to have an interface between OPSUSS and the IBM CSM product via the command line interface. Wondering what I have missed in the configuration (if anything) of OPSUSS that is preventing getting the output back into a REXX stem. 

 

ctext = "sh csmcli.sh 'cmdsess -help -noinfo'"       
"USSCMD COMMAND('"ctext"') LOG(Y) STEM(csm.)"        

 

Cause

The USSCMD is not waiting long enough for output to be returned.

Environment

Release : 14.0

Component : OPS/MVS

Resolution

Add a WAIT keyword to the USSCMD statement as follows:

"USSCMD COMMAND('"ctext"') LOG(Y) STEM(csm.) WAIT(300)"

Additional Information

Description of USSCMD keywords including the WAIT keyword:

https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/14-0/reference/command-and-function-reference/host-environment-commands/address-uss-commands.html#concept.dita_4d4b2f78a3e6ddc0468129291c241e8fcf843030_ADDRESSUSSUSSCMDIssueUNIXCommands