Skip to content

Issue with running the mainframe_operations.sh script on Z/OS unix. #339

@goldfishsound

Description

@goldfishsound

Course Details

IBM Learning Platform

Description

The mainframe_operations.sh script gets executed in the z/os mainframe unix enviroment using:
sshpass -p "$ZOWE_PASSWORD" ssh -o StrictHostKeyChecking=no $ZOWE_USERNAME@204.90.115.200 'sh -s' < .github/scripts/mainframe_operations.sh

The following loop:

for program in NUMBERS EMPPAY DEPTPAY; do
run_cobolcheck $program
done

The problem I'm facing is that only the time run_cobolcheck is called, NUMBERS it executed without any errors, where as the remaining two loop for EMPPAY and DEPTPAY both fail the execution with:
cp: FSUM6259 target file "//'***.CBL(EMPPAY)'": EDC5061I An error occurred when attempting to define a file to the system.
Failed to copy CC##99.CBL to ***.CBL(EMPPAY)

Adding a 5 second delay in the loop solves this problem.

Run for each program

for program in NUMBERS EMPPAY DEPTPAY; do
run_cobolcheck $program
sleep 5
done

Reproduction Steps

...

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions