Previous Topic: Expand a Batch Load ModuleNext Topic: Generate Code Only


Generate an Online, Server, z/OS Library, or Batch Load Module Component

Use the Load Module Expansion panel to generate an online, server, z/OS Library, or batch load module component.

Follow these steps:

  1. On the Application System Construction menu, type 1 for the Generate business system option and press Enter.
  2. Type an E in the column next to a load module name and press Enter.

    Load Module Expansion           Row 1 to 9 of 14  COMMAND ===>                                                 SCROLL ===> PAGE                                                                                 Model name  . . :  GEN SAMPLE MODEL                                           Business system :  CORPORATE_MANAGEMENT                                        Load module name:  MENU                                                                                                                                       Type an action code next to one or component names, then press enter.          To exit, press F3.  To cancel, press F12.                                                                                                                       B=Generate both code and screen   C=Generate code only     P=List PAD          R=Recompile code                  S=Generate screen only                       X=Resolve external action blocks                                                                                           Gen     Gen                      Opt Name                              Type     Date    Time   Source   Screen   _  ADD_DEPARTMENT                   ACTION                  ADDDEPT            _  ADD_DIVISION                     ACTION                  ADDDIV             _  ADD_EMPLOYEE                     ACTION                  ADDEMP             _  DELETE_DEPARTMENT                ACTION                  DELDEPT            _  DELETE_DIVISION                  ACTION                  DELDIV             _  DELETE_EMPLOYEE                  ACTION                  DELEMP             _  EMPLOYEE_DETAIL                  PROCED                  EMPDET   DETSCRN   _  EMPLOYEE_LIST                    PROCED                  EMPLIST  LISTSCRN  _  MAINTAIN_DEPARTMENT              PROCED                  MAINTDEP DEPTSCRN

  3. Select a generation option, B, C, or S, for one or more components:
    B

    For procedure steps when generating the source code and the screen.

    C

    To generate only the source code for a component.

    S

    To generate only the screen source code.

  4. Press Enter.

    When the Present generation option is set to Yes in the Generation Options panel, CA Gen displays the Generation Options for Load Module panel.

  5. Override the default values for this generation, if necessary, and press Enter to continue.

    When the Present confirmation panel option is set to Yes in the Generation Options panel, CA Gen displays the Confirm Generation of Load Module panel.

  6. Press Enter to accept the parameters. Click Cancel to return to the options panel.

    If you selected processing in the foreground, CA Gen displays the Generation Status panel.

    To exit the Generation Status panel when generation is complete, press Enter.

    When the Present JCL option is set to Yes in the Generation Options panel and you selected processing in the background, CA Gen displays the Update JCL for Background Generation panel.

  7. Make the changes and press Enter to submit the job.

    You only press Enter if the Auto-submit JCL option on the Generation Options screen was not set to Yes.

To generate a server load module or a z/OS library load module component

Follow these steps:

  1. On the Application System Construction menu, type 1 for the Generate business system option and press Enter.

    CA Gen displays the Generate Business System panel listing the online load modules, server load modules, and batch jobs in the business system.

  2. Type an E in the column next to a load module name and press Enter.

    CA Gen displays the Load Module Expansion panel with load module's components.

  3. Type a C in the column next to the component name to generate code and press Enter.

    When the Present generation option is set to Yes in the Generation Options panel, CA Gen displays the Generation Options for Load Module panel.

  4. Override the default values for this generation, if necessary, and press Enter to continue.

    When the Present confirmation panel option is set to Yes in the Generation Options panel, CA Gen displays the Confirm Generation of Load Module panel.

  5. Press Enter to accept the parameters or click Cancel to return to the options panel.

    CA Gen displays the Generation Status panel if you selected processing in the foreground.

  6. When generation completes, press Enter to exit the Generation Status panel.

    When the Present JCL option is set to Yes in the Generation Options panel and you selected processing in the background, CA Gen displays the Update JCL for Background Generation panel.

  7. Make the changes and press Enter to submit the job.

    You only press Enter if the Auto-submit option on the Generation Options screen was not set to Yes.

To generate a batch load module component

Follow these steps:

  1. On the Application System Construction menu, type 1 for the Generate business system option and press Enter.

    CA Gen displays the Generate Business System panel listing the online load modules and batch jobs in the business system.

  2. Type an E in the column next to a batch job name and press Enter.

    When the batch job includes multiple batch load modules, CA Gen displays the Batch Job Expansion panel listing the batch load modules in the batch job.

    or

    When the batch job contains one batch load module, CA Gen displays the Batch Load Module Expansion panel with the module's components.

  3. Override the default values for this generation, if necessary, and press Enter to continue.

    When the Present confirmation panel option is set to Yes in the Generation Options panel, CA Gen displays the Confirm Generation of Load Module panel.

  4. Press Enter to accept the parameters and click Cancel to return to the options panel.

    CA Gen displays the Generation Status panel when you selected processing in the foreground.

  5. Press Enter to exit the Generation Status panel when generation completes.

    When the Present JCL option is set to Yes in the Generation Options panel and you selected processing in the background, CA Gen displays the Update JCL for Background Generation panel.

  6. Make the changes and press Enter to submit the job.

    You only press Enter if the Auto-submit option on the Generation Options screen was not set to Yes.

More information:

Generate an External Action Block Stub