This chapter explains the rules for making an IMS database accessible to FOCUS. If any of the concepts or terms are unfamiliar to you, you can refer to the discussion of concepts and mapping procedures in IMS Overview and Mapping Concepts. |
Topics: |
In IMS, a PSB regulates an application's authority to access databases. The PSB consists of PCBs, each of which describes one view of one database that the program can access. You must describe your PSBs and PCBs to FOCUS before FOCUS can use them to access an IMS database:
Each Master File describes the segments and fields that are accessible through its corresponding PCB. The database made accessible by the PCB can be a physical or logical database.
In most environments, the user selects a specific PSB at allocation time. However, if you access IMS through the DBCTL environment, you select the PSB during your session, either by issuing a SET command or by creating an Access File to select the PSB.
As discussed in IMS Overview and Mapping Concepts, IMS database descriptions (DBDs) often do not describe every field in the database. However, your site may maintain a COBOL FD description of the database. If it does, you can use the FOCUS COBOL FD Translator to help create Master Files.
A Master File can describe an entire PCB or any part of the PCB that represents a subtree of the hierarchy starting from the root. (See IMS Overview and Mapping Concepts, for a discussion of hierarchies and subtrees.)
When you issue a request such as TABLE FILE SALES, FOCUS processes the request with the following steps:
For MVS, Master Files are stored in an MVS partitioned dataset (PDS) allocated to ddname MASTER; the SALES Master File is member SALES in this dataset.
For CMS, Master Files are stored as files with filetype MASTER; the SALES Master File is the file named SALES MASTER.
Information Builders |