---
title: "IMS DB: CHKP(basic, symbolic), XRST calls"
description: "Here is a way to implement checkpoint logic in IMS DB . The DLI calls CHKP and XRST are needed to implement it. Checkpoint DLI calls in IMS DB. CHKP (basic) CHKP (basic) call's purpose is to recover t..."
url: https://srinimf.com/2012/03/05/imsdb-chkpbasicsymbolic-xrst-calls/
date: 2012-03-05
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2012/03/pexels-photo-259915.jpeg?fit=1880%2C1253&ssl=1
categories: ["IMS DB"]
tags: ["Checkpoints in IM DB"]
type: post
lang: en
---

# IMS DB: CHKP(basic, symbolic), XRST calls

[Here is](https://srinimf.com/2014/04/29/nosqlz-dbms-for-mainframe-zos/) a way to implement [checkpoint logic](https://srinimf.com/2012/03/04/imsdb-system-database-calls/) in [IMS DB](https://srinimf.com/2016/10/07/the-list-of-dli-functions-absolutely-need-for-ims-db-projects/). The DLI calls CHKP and XRST are needed to implement it

## Checkpoint DLI calls in IMS DB

### CHKP (basic)

**CHKP (basic)** call’s purpose is to recover the data. It collects the **checkpoint-id** and writes it to the checkpoint file. When the checkpoint arrives, it commits all the work and updates the checkpoint file. This will work with both [MPP and BMP](https://srinimf.com/2016/07/19/why-cmpaty-in-psbgen/). Here’s a logic [to use](https://srinimf.com/2015/10/31/how-to-check-spool-which-database-calls-used-in-ims-db-batch-jcl/) CHKP call [[techdocs.broad.com](https://techdocs.broadcom.com/us/en/ca-mainframe-software/rai/smart-jobstream-series/20-0/using-smart-restart/smartrestart-for-ims-and-mixed-ims--db2-applications/sample-db--ims-cobol-application.html)]

### XRST Call

**XRST call. **It must be the first call. It should only be used with CHKP(symbolic) calls. It should be preceded by CHKP(symbolic) call. This is allowed in BMP and Batch applications. This call has the capability to retrieve the data stored by the CHKP(symbolic) call. Here is a way to use XRST call [[docs.bmc.com](https://docs.bmc.com/docs/arcimsdb2vsam41/using-the-xrst-call-925024379.html)]

### CHKP(Symbolic)

**CHKP(Symbolic)** call will be used to store seven areas of the program. When the checkpoint arrives, it commits the work and updates the checkpoint file. It works with the XRST call. It is allowed in Batch and BMP applications. Here’s the usage of CHKP symbolic call [[IBM.com](https://www.ibm.com/docs/en/ims/15.1.0?topic=services-chkp-symbolic-call)]

References

[sh20-9145-0_ims_vs_version_1_primer_sep78](https://srinimf.com/wp-content/uploads/2022/10/sh20-9145-0_ims_vs_version_1_primer_sep78.pdf)[Download](https://srinimf.com/wp-content/uploads/2022/10/sh20-9145-0_ims_vs_version_1_primer_sep78.pdf)

Related Posts

- [Essential DL/I Functions for Efficient IMS DB Operations](https://srinimf.com/2016/10/07/the-list-of-dli-functions-absolutely-need-for-ims-db-projects/)DateOctober 7, 2016
- [IMS DB-DLI System and Database Calls](https://srinimf.com/2012/03/04/imsdb-system-database-calls/)DateMarch 4, 2012
- [IMS DB: Application Vs System service Calls](https://srinimf.com/2015/05/07/imsdb-application-calls-and-system-service-calls/)DateMay 7, 2015

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2012%2F03%2F05%2Fimsdb-chkpbasicsymbolic-xrst-calls%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2012%2F03%2Fpexels-photo-259915.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=IMS%20DB%3A%20CHKP%28basic%2C%20symbolic%29%2C%20XRST%20calls)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2012/03/05/imsdb-chkpbasicsymbolic-xrst-calls/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2012/03/05/imsdb-chkpbasicsymbolic-xrst-calls/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2012/03/05/imsdb-chkpbasicsymbolic-xrst-calls/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2012/03/05/imsdb-chkpbasicsymbolic-xrst-calls/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20IMS%20DB%3A%20CHKP%28basic%2C%20symbolic%29%2C%20XRST%20calls&body=https%3A%2F%2Fsrinimf.com%2F2012%2F03%2F05%2Fimsdb-chkpbasicsymbolic-xrst-calls%2F&share=email)
-

### Like this:

Like Loading…
