Structure of applications that access the DBRC API

Your applications must follow a general structure in order to access the DBRC API.

The general structure of an application that uses the DBRC API is as follows:

  1. Include the API DSECTS (DSPAPI FUNC=DSECT)
  2. Initialize the API, start DBRC, establish a connection to the RECON data sets, and receive the API token (DSPAPI FUNC=STARTDBRC)
  3. Issue one or more Query requests (DSPAPI FUNC=QUERY)
  4. Process the information that is returned from the Query requests
  5. Return buffer storage (DSPAPI FUNC=RELBUF)
  6. Terminate DBRC and the DBRC API (DSPAPI FUNC=STOPDBRC)