---
title: "The Real Purpose of DBDGEN Utility in IMS DB"
description: "DBDGEN Utility the purpose of this utility for IMS DB programs explained in this article."
url: https://srinimf.com/2016/03/14/why-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program/
date: 2016-03-14
modified: 2021-10-28
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/03/pexels-photo-6156531.jpeg?fit=1880%2C1253&ssl=1
categories: ["IMS DB"]
tags: ["IMS DB Tips and Tricks"]
type: post
lang: en
---

# The Real Purpose of DBDGEN Utility in IMS DB

Here’s the purpose of DBDGEN in IMS DB. The DBDGEN utility generates DBDs for a database based on the type of database being used.

## DBDGEN Utility Control Statements

The DBD statement names the database being described and provides DL/I with information concerning database organization.

The DATASET statement is used only in non-DEDB [DBDGEN](https://srinimf.com/2017/05/06/gu-and-ghu-calls-in-ims-db/) input record structures. The DATASET statement defines a data set group within a database. One or more DATASET statements follow the DBD statement.

The AREA statement is used only in DEDB DBDGEN input record structures. The AREA statement defines an area within a database. One or more AREA statements follow the DBD statement.

The [SEGM statement](https://srinimf.com/2015/08/22/mainframe-tip-editing-ims-db-database-with-file-aid/) defines the segments of the specified database. The SEGM statement is used with the following statements:

- FIELD
- XDFLD
- LCHILD
- DFSMARSH
- DFSMAP
- DFSCASE

Each statement defines different aspects of a segment or the fields in a segment. The DBDGEN statement indicates the end of DBDGEN control statements. FINISH is an optional statement retained in the input stream for compatibility.

The END statement indicates to the z/OS® assembler that the end of the input statements has been reached. [More on DBD-Database Description Utility.](https://www.ibm.com/docs/en/ims/13.1.0?topic=utilities-database-description-dbd-generation-utility)

## Databases That Use DBDGEN utility

- HSAM (including SHSAM)
- GSAM
- HISAM (including SHISAM)
- HDAM
- PHDAM
- HIDAM
- PHIDAM
- MSDB
- DEDB
- Index
  - Primary HIDAM
  - Secondary
- PSINDEX
- Logical

Keep Reading

- [IMS DB: DEDB Vs DL/I database Top Differences](https://srinimf.com/2015/10/20/differences-of-dedb-vs-dli-databases-in-ims-db/)DateOctober 20, 2015
- [How to Map IMS DB Segment Data to COBOL Copy Book](https://srinimf.com/2021/09/18/how-to-map-ims-db-segment-data-to-cobol-copy-book/)DateSeptember 18, 2021
- [IMS DB Tutorial Learn Quickly](https://srinimf.com/2015/06/03/imsdb-refresher-for-mainframe-programmers/)DateJune 3, 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%2F2016%2F03%2F14%2Fwhy-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F03%2Fpexels-photo-6156531.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=The%20Real%20Purpose%20of%20DBDGEN%20Utility%20in%20IMS%20DB)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/03/14/why-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/03/14/why-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/03/14/why-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/03/14/why-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20The%20Real%20Purpose%20of%20DBDGEN%20Utility%20in%20IMS%20DB&body=https%3A%2F%2Fsrinimf.com%2F2016%2F03%2F14%2Fwhy-dbdgen-system-utility-you-need-in-ims-db-before-writing-a-program%2F&share=email)
-

### Like this:

Like Loading…
