Generating and modifying code

Generate and modify COBOL, JCL, PL/I, REXX, and Assembler programs.

IBM® Bob Premium Package for Z also supports the development of applications for key middleware environments, including CICS, MQ, IMS, and DB2/SQL.

How to generate code

To create a new program, complete the following steps:

  1. Open IBM Bob workspace with all extensions installed and select the Z Code mode.
  2. In the IBM Bob chat window, select the prompt or type your request. For example:
    Create a program to process customer records
  3. The system activates the z-coding-standards-skill-builder skill.
  4. It searches for existing documentation and standards, and then gathers necessary requirements for the task.
  5. It generates the program according to established coding standards.
  6. The system verifies the generated code against those coding standards and creates program documentation.

Tools

To know about the tools used by IBM Bob Premium Package for Z to generate code, see Using workflows, skills, tools, and commands.

Sample prompts

You can use the following sample prompts to generate code:

  • Create a COBOL program to process customer records
  • Generate JCL to run a batch job
  • Write a CICS transaction handler
  • Generate IMS database calls
  • Create a DB2 stored procedure