---
title: "JCL-How to Give Dummy VSAM Dataset"
description: "There are multiple DUMMY data set benefits you can see in your JCL. Explained how to created DUMMY dataset in VSAM. Added more info why DUMMY is used in projects."
url: https://srinimf.com/2011/10/22/jcl-how-to-give-dummy-vsam-dataset/
date: 2011-10-22
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2011/10/pexels-photo-208147.jpeg?fit=1880%2C1192&ssl=1
categories: ["JCL", "VSAM"]
tags: ["Dummy data set", "VSAM tips and tricks"]
type: post
lang: en
---

# JCL-How to Give Dummy VSAM Dataset

Below [sample JCL](https://srinimf.com/2015/10/16/jcl-to-sort-few-fields-in-an-input-dataset/) help you to give dummy [VSAM dataset](https://srinimf.com/2016/01/16/idcams-how-to-copy-vsam-data-set-to-non-vsam-data-set/) [in job](https://srinimf.com/2014/07/23/jcl-mandatory-details-in-job/): The [best JCL book](http://www.amazon.com/dp/0070727023/ref=as_li_tf_til?tag=mainframesrin-20&camp=0&creative=0&linkCode=as1&creativeASIN=0070727023&adid=0YGGPW7J37AJVVZ58BPR) for more tips- and get it at discounted price.

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/)

Using parameter AMP=’AMORG’ , we can communicate to OS to treat the DUMMY file as [VSAM file](https://srinimf.com/2022/07/09/10-mainframe-interview-questions-asked-in-mphasis-recently/).

```
//VSAMFILE DD DUMMY, AMP='AMORG'
```

The DUMMY data set is do nothing is JCL. It is something like you are not using anywhere.

Advertisements

**You can use DUMMY for testing purpose…**

One [use of](https://srinimf.com/2015/10/20/how-sysibm-sysdummy1-different-from-other-catalog-tables/) the DUMMY parameter is in testing a program. When testing is finished and you want input or output operations performed on the data set, replace the [DD DUMMY](https://srinimf.com/2010/03/12/answer-jcl-question/) statement with a [DD statement](https://srinimf.com/2014/08/19/10-points-instream-and-cataloged-procedures-of-jcl/) that fully defines the data set.

**The best advanatage**

You have a proc. You have given dummy to a dataset. You can override that DUMMY perameter in your jcl.

The way you have given DUMMY in proc is

```
//DS1     DD    DUMMY,DSNAME=A,DISP=OLD
```

You can override it with the following syntax

Nullify the DUMMY parameter by coding:

```
//JS      EXEC  PROC=PROC1
   //PS.DS1  DD    DSNAME=A
```

Related Posts

- [5 Exclusive JCL Interview Questions](https://srinimf.com/2015/03/04/jcl-tough-questions-for-interviews/)DateMarch 4, 2015
- [JCL Mandatory Parameters in JOB Card](https://srinimf.com/2014/07/23/jcl-mandatory-details-in-job/)DateJuly 23, 2014
- [IDCAMS: Copy VSAM to Non VSAM dataset](https://srinimf.com/2016/01/16/idcams-how-to-copy-vsam-data-set-to-non-vsam-data-set/)DateJanuary 16, 2016

### 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%2F2011%2F10%2F22%2Fjcl-how-to-give-dummy-vsam-dataset%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2011%2F10%2Fpexels-photo-208147.jpeg%3Ffit%3D1200%252C761%26ssl%3D1&description=JCL-How%20to%20Give%20Dummy%20VSAM%20Dataset)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2011/10/22/jcl-how-to-give-dummy-vsam-dataset/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2011/10/22/jcl-how-to-give-dummy-vsam-dataset/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2011/10/22/jcl-how-to-give-dummy-vsam-dataset/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2011/10/22/jcl-how-to-give-dummy-vsam-dataset/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20JCL-How%20to%20Give%20Dummy%20VSAM%20Dataset&body=https%3A%2F%2Fsrinimf.com%2F2011%2F10%2F22%2Fjcl-how-to-give-dummy-vsam-dataset%2F&share=email)
-

### Like this:

Like Loading…
