High-level procedure for defining program views with DDL
You define new IMS program views by CREATE PROGRAMVIEW DDL statements. You alter IMS program views by using the DROP PROGRAMVIEW and CREATE PROGRAMVIEW DDL statements.
A program view, also known as a program specification block (PSB), must be created before you execute an application program under IMS. The program view is used to describe the program and its use of logical terminals and logical data structure.
A program view cannot be altered. Instead, you can DROP and then ADD a PSB. For example, if you want to add, drop, or delete a schema (PCB) from a program view, you need to drop the PSB, then recreate it with the PCB/schema included that you need.
You define the characteristics of an application program by using the CREATE PROGRAMVIEW statement. At least one is needed for each message, batch, or Fast Path program. The name of the program view and its associated application program must be the same in a telecommunications system.
The CREATE PROGRAMVIEW statements describe the IMS resources to be used through a list of schemas, also known as program communication blocks (PCBs).
If you are creating a new database with a CREATE DATABASE statement, create a program view within the same DDL commit scope, so that the database is useable.
Procedure
To create a new program view:
To modify an existing program view: