This sample demonstrates how to submit JCL and wait for the output.
To submit JCL and wait for the output, select a JCL file from the z/OS® Projects view and then select the API Sample Actions > Submit and Wait action.