-
What is a set? What pointers are required, what are possible? How may sets be ordered?
A set is an owner record and, optionally, its member records. There are three types of pointers: next, prior and owner, but only next is required. There are five possible orders for arrangements of sets; they are: first - insert at beginning, last - insert at end of set, next - insert after current of set, prior - insert prior to current of set and sorted - insert according to sort value.
-
What is the IDD?
IDD is the Integrated Data Dictionary. It contains information about the elements, record types, sets, maps and dialogues within the database.
-
Name and explain the three location modes?
Calc is based on a symbolic value which is used to determine the target page. Via mode is for members only. Via records are stored near to their owners. In direct mode the target is specified by the user and is stored as close as possible to that page.
-
What is a region?
Region is used synonymously with area. It is a group of logically contiguous pages.
-
What is a run unit?
A run-unit is a logical unit of work; it is analogous to a CICS task.
-
What is a junction record?
A junction record is a member record type that allows for many-to-many relationship between its two owner records. For a school database the CLASS record is a junction for the TEACHER and SUBJECT record types.
-
What does a ROLLBACK do?
It rolls back (reverses) all database updates to the point of the last rollback or to the beginning of the run-unit.
-
What does a FINISH do?
It releases all database resources, terminates database processes, writes statistical information to IDMS and logs the checkpoint.
-
What is the meaning of Copy IDMS Subschema-Binds?
It generates a bind run-unit and binds all the records for the sub-schema the program is referencing.
-
What is auto status?
Autostatus is a protocol mode which causes the expansion of each DML statement to include a perform IDMS-Status statement.
-
What does a store statement do?
It places a record in the database based on the location mode specified.
-
What sets will the stored record connect to?
It will connect to all sets where it is defined as an automatic member. The store requires that currency be established for all these set occurrences.
-
What is currency?
The old joke - where the programmer thinks he is, but the DBMS knows he is not. Currency is the location within the database during run-unit execution. There are four levels of currency: current of run-unit is the record occurrence of the last successful find or obtain; current of record type is for the most recent of each record type; current of record set is the most recent within each set and...
-
If the stored record is not defined as automatic of a set, how can it be stored as a member of the set.
Store the record then connect it to each set where it is a manual member.
-
-
Distinguish among erase, erase permanent, erase selective and erase all?
Erase cancels the membership of a record in specific set occurrences and removes only the named record. Erase permanent removes the specific record and all mandatory occurrences it owns. It disconnects all optional members. Erase selective removes the record, all mandatory members and all optional members not connected to other sets. It disconnects those that are connected. Erase all removes the...
-
What are the types of record locks and how are they set?
Locks may be shared or exclusive. Shared means that other run units can retrieve the record but can not modify it. Exclusive means that other run units can neither retrieve nor modify it. Record locks may be implicit or explicit. Implicit locks are set in the ready statement usage clause. Explicit locks are set using either the keep statement or keep option of the find/obtain command.
-
How are record locks released?
Locks are released by a change in currency or by a commit, rollback or finish command.
-
What does a status return code of nn29 mean in relation to record locks?
Nn29 means that two run units are waiting to set locks on the same record and are in deadlock.
-
Why would you use find and get rather than an obtain?
Find tells you whether the record is actually in the database. If it is not found you save the overhead of an obtain.
IDMS Interview Questions
Ans