openmainframeproject / openmainframeproject/cobol-programming-course
Issue with running the mainframe_operations.sh script on Z/OS unix.
Nobody has claimed this yet.
- Dominant language
- COBOL
- Stars
- 3.6k
- Forks
- 721
- Avg merge
- 11d 16h
- Merged PRs (30d)
- 1
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .github/scripts/mainframe_operations.sh and run the loop for NUMBERS, EMPPAY, and DEPTPAY in the reported z/OS Unix environment using the issue's SSH command. Trace each run of run_cobolcheck and the reported copy failure; done means EMPPAY and DEPTPAY complete without requiring the added sleep delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100