zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
113 stars 87 forks source link

Retrieve job output from jobs that route to other LPARs for execution #184

Open MikeBauerCA opened 5 years ago

MikeBauerCA commented 5 years ago

I would like to retrieve job output via the CLI from jobs that route to other LPARs for execution.

Notes from original thread:

dkelosky commented 5 years ago

Notes from working with @ChrisBoehmCA

If you submit this from some system and XEQ to another via JCL:

//RUNMAIN  JOB ACCT#                               
/*ROUTE XEQ xxxxxxxx                                                  
//EXEC     EXEC PGM=IEFBR14

It seems like you get a command response like:

$ zowe jobs submit ds "user.work.jcl(iefbr14)" --vasc
Command Error:
Error obtaining status for jobname "RUNMAIN" jobid "JOB00790".
z/OSMF REST API Error:
Rest API failure with HTTP(S) status 400
rc:       4
reason:   10
category: 6
message:  No job found for reference: 'RUNMAIN(JOB00790)'

Error Details:
HTTP(S) error status "400" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.

Host:      xxxx
Port:      443
Base Path:
Resource:  /zosmf/restjobs/jobs/RUNMAIN/JOB00790
Request:   GET
Headers:   [{"X-CSRF-ZOSMF-HEADER":true}]
Payload:   undefined
ChrisBoehmCA commented 5 years ago

Usage of the job correlator rather than job name and job ID does not seem to resolve this issue : (

Command Error:
Error obtaining status for jobname "xxxI" jobid "JOB01681".
z/OSMF REST API Error:
Rest API failure with HTTP(S) status 400
rc:       4
reason:   10
category: 6
message:  No job found for reference: 'J0001681xxx.......:'

Error Details:
HTTP(S) error status "400" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.

Host:      xxxx
Port:      443
Base Path:
Resource:  /zosmf/restjobs/jobs/J0001681xxx.......:
Request:   GET
Headers:   [{"X-CSRF-ZOSMF-HEADER":true}]
Payload:   undefined
JTonda commented 5 years ago

Research needed.

github-actions[bot] commented 1 year ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.