Google News
logo
IMS DB - Quiz(MCQ)
What is the purpose of the GNP (Get Next with Positioning) command in an IMS DB system?
A)
To update a record in the database
B)
To retrieve a specific record from the database
C)
To retrieve the next record that matches a search criteria
D)
None of the above

Correct Answer :   To retrieve the next record that matches a search criteria


Explanation : The GNP (Get Next with Positioning) command is used in an IMS DB system to retrieve the next record that matches a search criteria. It is similar to the GN (Get Next) command, but also provides a way for the application program to specify the position in the database where the search should start.

Advertisement