JCL generation

You can generate the job control language (JCL) for an MFS file, either from an existing partitioned data set on the remote z/OS® system or from an MVS subproject.

Before you can create the JCL for an MFS file you must create a property group that specifies the information that the host needs for JCL generation. To create a property group:
  1. In the Property Group Manager view, right-click the host connection for the host that contains the MFS files for which you want to generate JCL.
  2. Select New Property Group. A new property group is opened in the editor.
  3. At the bottom of the editor, select the MFS tab. This action opens the MFS settings page of the property group.
  4. From the left menu, select Procedures and Steps. In the main window, expand the procedure name, ELAXFMFS, and select DFSUPAAO.
  5. Scroll down to the Step options panel, and click Edit. This action opens the editable option for the procedure and step you selected.
  6. Enter PDS names that are available under the My Data Sets filter for FORMAT library, Listing output data set, and SYSLIB library.
  7. Save the property group.
After you create a property group, you must associate it with the MFS file or containing PDS before you generate the JCL.
  1. In the Remote System Explorer view, navigate to the MFS file or the PDS containing the MFS for which you want to generate JCL.
  2. Right-click the MFS file or the containing PDS, and select Property group > Associate property group. The Associate Property Group dialog opens.
  3. In this dialog, select the checkbox next to the property group to associate to your MFS file or PDS. Click OK. The property group is associated to the MFS file or PDS.

Finally, you can generate the JCL for the MFS file.

  1. Right-click the MFS file and then click Generate JCL > To Run MFS Gen.
  2. Specify the target partitioned data set for the generated JCL and the member name. You can also set a different job name. This target PDS is where the generated JCL is placed.
  3. Click OK to complete the generation process.

    If the member name exists, you are prompted to overwrite the member.

    If the target partitioned data set does not exist, an error message is displayed.

If the JCL generation is successful, you are immediately prompted to submit the JCL. If you do not submit the JCL, then you can submit the JCL later by right-clicking the JCL in its PDS and selecting Submit.

You can use the JES subsystem to track any JCL submission process.