# JCL

**URL:** <https://techcommunity.softwareag.com/t/jcl/60657>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [March 10, 2006, 4:28pm UTC](https://techcommunity.softwareag.com/t/jcl/60657 "2006-03-10T16:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcs](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@tcs](https://techcommunity.softwareag.com/u/tcs)\
**Post date:** [March 10, 2006, 4:28pm UTC](https://techcommunity.softwareag.com/t/jcl/60657/1 "2006-03-10T16:28:05Z")

</div>

HI

Can you please give ma a small example how to create a JCL to create the work datasets using NAt/ADAB

---

<div class="post-metadata">

**Author:** ![Curtis\_Pew](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@Curtis\_Pew](https://techcommunity.softwareag.com/u/Curtis_Pew)\
**Post date:** [March 14, 2006, 12:26am UTC](https://techcommunity.softwareag.com/t/jcl/60657/2 "2006-03-14T00:26:42Z")

</div>

Assuming you’re on MVS (or OS/390 or zOS), it might look like:

```auto
//CMWKFnn DD DSN=dsname,DISP=(,CATLG),
// SPACE=(space parameters),DSORG=PS,RECFM=recfm,LRECL=lrecl
```

where nn is the number from your WRITE WORK statement, and space parameters, recfm, and lrecl depend on how much data you have, the record format, and your logical record length. For example, if your NATURAL program says:

```auto
WRITE WORK FILE 1 #MYDATA
```

and #MYDATA is 400 bytes long, and you’re expecting to write about 10000 records, you might have JCL like:

```auto
//CMWKF01 DD DSN=MY.DATA,DISP=(,CATLG),DSORG=PS,
// RECFM=FB,LRECL=400,AVGREC=K,SPACE=(400,(10,1))
```

If your storage administrator has defined an appropriate DATACLAS, you could use that to specify DSORG, RECFM, LRECL, AVGREC, and SPACE in a single parameter.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/jcl/60657/3 "2021-04-02T14:40:30Z")

</div>


