# Max report (CMPRT##) files

**URL:** <https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699>\
**Category:** Forum\
**Tags:** Natural-on-Mainframes\
**Created:** [November 3, 2025, 3:37pm UTC](https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699 "2025-11-03T15:37:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve9](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@steve9](https://techcommunity.softwareag.com/u/steve9)\
**Post date:** [November 3, 2025, 3:37pm UTC](https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699/1 "2025-11-03T15:37:01Z")

</div>

We have a program that writes a out a large number of reports to CMPRT## files (CMRPT01, CMPRT02, etc.)

When we exceed 31 files (there is one input file, so a total of 32 files)

WRITE (32) NOTITLE NOHDR  
‘WITH’ #CNT-RECORDS ‘RECORDS ON’  
#CNT-PAGES-ON-CD ‘PAGES.’ /  
etc….

with a NAT0304.

I haven’t been been able to find a parm that would allow us to exceed that number. But maybe there is such a thing?

thanks

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [November 3, 2025, 8:56pm UTC](https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699/2 "2025-11-03T20:56:18Z")

</div>

Natural has a limit of 32 concurrent print files, but in a single batch session, you can create as many reports as the OS will allow (4B in Linux, about 3K for zOS). This works by reusing one or more printer numbers.

```auto
WRITE (01) 'first report' /* writes to CMPRT01
DEFINE PRINTER (01) OUTPUT "DDNAME02"
WRITE (01) 'second report' /* writes to DDNAME02

```

Once a report has been completed, you can reuse the printer number for a subsequent report. Under zOS you have the option of specifying a DDNAME or DSNAME. These must be specified in the JCL. Obviously, you are not restricted to CMPRTnn for DDNAMEs.

---

<div class="post-metadata">

**Author:** ![steve9](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@steve9](https://techcommunity.softwareag.com/u/steve9)\
**Post date:** [November 4, 2025, 2:47pm UTC](https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699/3 "2025-11-04T14:47:11Z")

</div>

Thanks Ralph, appreciate the input, very helpful.

---

<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:** [May 3, 2026, 2:47pm UTC](https://techcommunity.softwareag.com/t/max-report-cmprt-files/311699/4 "2026-05-03T14:47:52Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
