On Wed, 6 Jan 2021 07:33:41 +0000, Gadi Ben-Avi  wrote:
>
>I would like to automate some csm (Copy services manager) from z/OS.
>I installed csmcli on z/OS, and if I run csmcli.sh from the omvs shell, it 
>works ok.
>I found the TechDoc named 'IBM Copy Services Manager session automation' by 
>Thomas Luther which has a rexx program that sets up the environment to run 
>csmcli.sh, get the output from it, and act upon the results.
>
Is that: 
https://www.ibm.com/support/pages/system/files/inline-files/CSM_Session_automation_v1.1.pdf
???

The BPXWUNIX example is amateurish; the author doesn't know Rexx very well.
He clearly doesn't understand that RETURN restores the parent addressing
environment.

Did you change the HOME and PATH ENVIRONMENT variables?

I'll suggest prefixing each "USS" command with "set -x; "


>The rexx program uses bpxwunix to call cshcli.sh
>When I run the rexx program (whether under tso or in batch) I get lots of 
>error messages.
>I added an echo command at the beginning of csmcli.sh so I will know when it 
>starts.
>The command I added is 'echo "start csmcli.sh"'
>When I run it from the omvs shell, it works fine.
>When I run it from tso I get:
>echo: csmcli.sh 10: FSUM7351 not found
>
>Does this mean that it can't find the echo command?
>
Yes.

>How can I fix this?
>
Try "PATH=/opt/IBM/CSM/CLI/:/bin"

Check that all the directories mentioned by Rexx exist.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to