cobol-programming-course icon indicating copy to clipboard operation
cobol-programming-course copied to clipboard

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

Open goldfishsound opened this issue 1 year ago • 1 comments

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 [email protected] '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

goldfishsound avatar Sep 30 '25 12:09 goldfishsound

hi, @goldfishsound is this issue still open for solve? I wanted to give it a try

vortex-wq avatar Jan 09 '26 14:01 vortex-wq