openmainframeproject / openmainframeproject/cobol-programming-course

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

Open
#339 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.