Previous Topic: Example 2Next Topic: Working with Model Object Lists


Example 3

You can use the following series of commands to form part of a nightly process to prepare a model for the following day:

  1. Optionally run the Synchronize Model (YSNCMDL) command to ensure that the model is synchronized.
  2. Run the Apply Component Changes (YAPYCMPCHG) command to ensure that the impact of any changes to model objects are reflected throughout the model.
  3. Run the Filter Model Object List (YFLTMDLLST) command over the All Objects list (*ALLOBJ) to select model objects having the Required action indicator set to *EDT. Specify EDTLST as the output model list for programmers to edit the following day using YEDTMDLLST.
  4. Run the Filter Model Object List (YFLTMDLLST) command over the All Objects list (*ALLOBJ) to select model objects having the Required action indicator set to *GEN. Specify GENLST as the output model list.
  5. Run the Convert Model Object List (YCVTMDLLST) command over the GENLST model list to prepare a job list to generate objects that require generation as a result of a change to a component object.
  6. Run the Submit Model Create Requests (YSBMMDLCRT) commands. Specify the job list created in the previous step to generate and compile changed objects.
  7. Run the Document Model Object List (YDOCMDLLST) command to document the EDTLST and GENLST model lists for administrative purposes.