-
Notifications
You must be signed in to change notification settings - Fork 654
Description
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