Package zosjobs

Class SubmitJobs


  • public class SubmitJobs
    extends Object
    Class to handle submitting of z/OS batch jobs via z/OSMF
    Version:
    1.0
    Author:
    Frank Giordano
    • Constructor Detail

      • SubmitJobs

        public SubmitJobs​(ZOSConnection connection)
        SubmitJobs Constructor
        Parameters:
        connection - connection information, see ZOSConnection object
    • Method Detail

      • submitJob

        public Job submitJob​(String jobDataSet)
                      throws Exception
        Submit a job that resides in a z/OS data set.
        Parameters:
        jobDataSet - job Dataset to be translated into SubmitJobParams object
        Returns:
        job document with details about the submitted job
        Throws:
        Exception - error on submitting
      • submitJobCommon

        public Job submitJobCommon​(SubmitJobParams params)
                            throws Exception
        Submit a job that resides in a z/OS data set.
        Parameters:
        params - submit job parameters, see SubmitJobParams object
        Returns:
        job document with details about the submitted job
        Throws:
        Exception - error on submitting
      • submitJcl

        public Job submitJcl​(String jcl,
                             String internalReaderRecfm,
                             String internalReaderLrecl)
                      throws Exception
        Submit a string of JCL to run
        Parameters:
        jcl - JCL content that you want to be submitted
        internalReaderRecfm - record format of the jcl you want to submit. "F" (fixed) or "V" (variable)
        internalReaderLrecl - logical record length of the jcl you want to submit
        Returns:
        job document with details about the submitted job
        Throws:
        Exception - error on submitting
      • submitJclCommon

        public Job submitJclCommon​(SubmitJclParams params)
                            throws Exception
        Submit a JCL string to run
        Parameters:
        params - submit jcl parameters, see SubmitJclParams object
        Returns:
        job document with details about the submitted job
        Throws:
        Exception - error on submitting