Information Management System (IMS) is a hierarchy database built with the capability to process the extensive transactions. AWS Blu Insights support following statements in IMS.
PSB uses Program Communication Block (PCB) to define the database to be accessed by the application program. The database information is stored in the Database Description (DBD) file.
label PCB TYPE=DB,DBDNAME=dbd-filelabel PCB TYPE=GSAM,DBDNAME=dbd-filelabel PCB TYPE=DB,NAME=dbd-filelabel PCB TYPE=GSAM,NAME=dbd-fileWhere dbd-file is the name of the DBD file and label is the optional.
label COPY mfs-file
These statements imply a dependency, typed COPY, with another MFS file or a CPY file named mfs-file. label term is optional.
CEM01O MSG TYPE=OUTPUT,SOR=(CEM01,IGNORE),NXT=CEM01ICEM01I MSG TYPE=INPUT,SOR=(CEM01,IGNORE)The first statement defines a message output definition (MOD) named CEM01O and the second a message input definition (MID) named CEM01I. Those objects can be used from Cobol file by using CBLTDLI system utility as follows.
CALL 'CBLTDLI' USING
IM-PARM-COUNT
IM-CALL-FUNC IO-PCB
TP-SEGMENT
'CEM01O'.The APPLCTN macro defines an application program to IMS. It specifies the Program Specification Block (PSB) and the program type.
APPLCTN PSB=psbname,PGMTYPE=(type)Where:
psbname is the name of the PSBtype defines the program type (TP, BATCH, etc.)APPLCTN PSB=TESTP,PGMTYPE=(TP)The TRANSACT macro defines transaction codes that are processed by the application program. This statement creates the dependency between the IMS Stage1 macro and the IMS transaction object.
TRANSACT CODE=trancodeWhere:
trancode is the transaction code used to invoke the programTRANSACT CODE=IMSTRX1Supported Structure:
APPLCTN PSB=TESTP,PGMTYPE=(TP)
TRANSACT CODE=IMSTRX1 // Directly follows APPLCTN Unsupported Structure:
APPLCTN PSB=TESTP,PGMTYPE=(TP)
[other statements] // Not allowed here
TRANSACT CODE=IMSTRX1 // Invalid placement Here, dependency link established from the IMS Stage1 macro to the IMS Transaction object and from the IMS Transaction object to the Cobol program. Cobol program should be same name as the PSB program.
The IMS Stage1 macros establish important dependency relationships:
When PGMTYPE=TP: