---
title: "JCL Temp Dataset With disp ‘KEEP’ or ‘CATLG’"
description: "The data set in JCL can have three possible options one is KEEP, CATLG and PASS. Each has its own usages. Keep reading more."
url: https://srinimf.com/2016/01/27/idea-temporary-data-set-with-disp-keep-or-catlg/
date: 2016-01-27
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/01/woodland-road-falling-leaf-natural-38537.jpeg?fit=1880%2C1253&ssl=1
categories: ["JCL"]
tags: ["Disp Parameter in JCL", "JCL CATLG", "JCL Keep"]
type: post
lang: en
---

# JCL Temp Dataset With disp ‘KEEP’ or ‘CATLG’

If the DISP parameter for a temporary data set specifies KEEP or CATLG, the system changes the disposition to PASS and deletes the data set at job termination.

Related[JCL for DB2 LOAD and UNLOAD Utilities](https://srinimf.com/2015/11/21/db2-load-and-unload-jcl-is-not-rocket-science-heres-why/)

Related[GDG – Generation G0000V00 – Change V00 to V01](https://srinimf.com/2014/03/20/gdg-generation-version-change/)

## **Disp parameter in JCL**

However, the system does not change the disposition for a data set when all of the following are true:

- The data set resides on tape
- The data set is a new
- The data set is not named in a DSNAME parameter
- The status in the DISP parameter is OLD or SHR
- The UNIT parameter contains DEFER

In this case, the system deletes the data set at job termination but tells the operator to **keep the volume for the data set**.

Related[Top JCL Errors with Resolutions and Reasons](https://srinimf.com/2017/02/06/mainframe-jcl-errors-for-quick-reference/)

**JCL Quiz:**  [Start your Quiz here](https://srinimf.com/2011/10/26/interview_answers1/)

Related[JCL IEFBR14 do-nothing Utility](https://srinimf.com/2012/03/19/jcl-iefbr14/)

**Examples**

Related[JCL Sort Interview Questions](https://srinimf.com/2015/04/29/jcl-sort-interview-questions/)

```
//TEMPDS1  DD  DSNAME=&&MYDS,DISP=NEW,UNIT=SYSDA,
//              SPACE=(CYL,20)
//TEMPDS2  DD  DSNAME=&&DSA,DISP=(NEW,PASS),UNIT=3380,
//             SPACE=(TRK,15)
//TEMPSMS  DD  DSNAME=&&ABC,DATACLAS=DCLAS2,STORCLAS=TEMP1,DISP=NEW
(Ref: IBM on JCL)
```

Related[How to Create VSAM dataset without Using IDCAMS and Option 3.2](https://srinimf.com/2015/11/26/how-to-create-vsam-dataset-without-using-idcams-and-option-3-2/)

### 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%2F01%2F27%2Fidea-temporary-data-set-with-disp-keep-or-catlg%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F01%2Fwoodland-road-falling-leaf-natural-38537.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=JCL%20Temp%20Dataset%20With%20disp%20%27KEEP%27%20or%20%27CATLG%27)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/01/27/idea-temporary-data-set-with-disp-keep-or-catlg/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/01/27/idea-temporary-data-set-with-disp-keep-or-catlg/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/01/27/idea-temporary-data-set-with-disp-keep-or-catlg/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/01/27/idea-temporary-data-set-with-disp-keep-or-catlg/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20JCL%20Temp%20Dataset%20With%20disp%20%27KEEP%27%20or%20%27CATLG%27&body=https%3A%2F%2Fsrinimf.com%2F2016%2F01%2F27%2Fidea-temporary-data-set-with-disp-keep-or-catlg%2F&share=email)
-

### Like this:

Like Loading…
