zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

Provide a CLI command to change a job class

Open Joe-Winchester opened this issue 3 years ago • 5 comments

z/OSMF REST API supports changing the job class

https://www.ibm.com/docs/en/zos/2.4.0?topic=interface-change-job-class

A customer asked for this to be available as a CLI command. Their scenario was to run a job with MSGCLASS=H (held output) then release it to MSGCLAS A. Sample CLI command could be something like zowe jobs msgclass change -jobName XXXXXXXX -jobID XXXXXXXX -msgClass XXXXXXXX

Joe-Winchester avatar Sep 28 '21 14:09 Joe-Winchester

Should we change verb around? Quick suggestion: zowe jobs change [msgclass | class]

zFernand0 avatar Sep 28 '21 14:09 zFernand0

It appears zOSMF does not allow for changing the msgclass and only class can be changed. What if we were to instead offer an alternative way of holding/releasing a job along with the ability to change class category.

@zFernand0

ATorrise avatar Sep 28 '22 15:09 ATorrise

Hi @ATorrise , an alternative way could work. What is the sort of syntax you're suggesting ?

Joe-Winchester avatar Sep 29 '22 08:09 Joe-Winchester

Hi @Joe-Winchester, since zOSMF doesn't support the changing of msgclass property, would it be helpful to instead manage the delayed processing of a job via this hold/release mechanism? I imagine the commands would look similar to what Fernando suggested:

zowe jobs manage holdStatus ["release"|"hold"] and zowe jobs manage class ["A"|"B"...]

Where holdStatus would be defaulted to "release" rather than "hold" For this idea, would you prefer the hold property to be a boolean?

zowe jobs manage hold [True|False]

Where the default value is false

ATorrise avatar Sep 30 '22 13:09 ATorrise

Hi @ATorrise , sorry for the late reply. I really like this design !!!

Joe-Winchester avatar Oct 12 '22 12:10 Joe-Winchester