zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

Submit local files as batch jobs #1017

Closed ChrisBoehmCA closed 1 year ago

ChrisBoehmCA commented 4 years ago

Is your feature request related to a problem? Please describe.

A user on the Open Mainframe Slack (note: this URL may stop working eventually as that Slack space is on the free plan) requested that he be able to get the JCL for a submitted job, edit it, and submit it again, similar to his existing green screen workflow using the command sj in SDSF. This seems like one possible use case for submitting local files containing JCL.

Describe the solution you'd like

Right click on a local file. If it seems to be a JCL file,, expose a right click option to select a Zowe Explorer profile and submit it as a batch job. Unconditionally allowing submission of all local files might be confusing or undesirable for users.

Describe alternatives you've considered

Workarounds include:

Additional context

Clicking "Get JCL" solves the problem of retrieving the JCL but not submitting it again after editing.

image

zFernand0 commented 4 years ago

I agree with checking if the file language is detected to be JCL, then we can expose the option. However the file needs to be at least in preview mode (active document) for this (I believe).

Clicking "Get JCL" solves the problem of retrieving the JCL but not submitting it again after editing.

How about using the Submit JCL command from the command palette? It will prompt for the profile before submitting the job, and doesn't require it to be saved. And after submitting, someone can get that JCL, edit it, and submit it via the command palette again. :yum:

ChrisBoehmCA commented 4 years ago

That works well. Thanks. Since you can use this for any buffer in VS Code seemingly, it works as a solution for me. The slack thread is gone or I would pass it on to the user. It's up to you guys whether to close or not in case you do want to expose a right click option down the line. Thank you for the suggestion

JillieBeanSim commented 1 year ago

This enhancement has had no activity for 12 months. The issue also has less than 10 up-votes by the community. No action on this enhancement is targeted for the next 2 calendar quarters. Therefore, this enhancement is being closed. If you feel that this enhancement should continue to be available for community up-votes, you may reopen this issue.