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:
- Include the API DSECTS (DSPAPI FUNC=DSECT)
- Initialize the API, start DBRC, establish a connection to the RECON data sets, and receive the API token (DSPAPI FUNC=STARTDBRC)
- Issue one or more Query requests (DSPAPI FUNC=QUERY)
- Process the information that is returned from the Query requests
- Return buffer storage (DSPAPI FUNC=RELBUF)
- Terminate DBRC and the DBRC API (DSPAPI FUNC=STOPDBRC)