# Double sided printing to Xerox printer from mainframe Natural program

**URL:** <https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural\
**Created:** [July 7, 2021, 2:42pm UTC](https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648 "2021-07-07T14:42:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laetitia.blignaut](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@laetitia.blignaut](https://techcommunity.softwareag.com/u/laetitia.blignaut)\
**Post date:** [July 7, 2021, 2:42pm UTC](https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648/1 "2021-07-07T14:42:14Z")

</div>

I have a challenge to do double sided printing from Natural mainframe program to a XEROX printer. is there someone with ideas on how to be able to manage that? I though of perhaps using control variables , but can’t find a proper control variable for double sided.

---

<div class="post-metadata">

**Author:** ![George\_Cooper](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/george_cooper/32/7831_2.png) [@George\_Cooper](https://techcommunity.softwareag.com/u/George_Cooper)\
**Post date:** [July 7, 2021, 4:37pm UTC](https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648/2 "2021-07-07T16:37:53Z")

</div>

A few questions:  
Is the report created by a natural program running in batch or online?  
What kind of XEROX printer is it? Model # ? Attached to the mainframe and located at the computer room, or a PC/network-attached printer?  
If it’s on a PC network, what software routes output from mainframe to networked printers?

I recommend you start by contacting your computer center Help desk, talk to someone responsible for printing. Some mainframe shops set up separate printer destination names for different formats, like portrait vs landscape mode. They may have a special destination name to send reports for double-sided printing. Other sites may accomplish this by using special FORMS names specified in the JCL.

Natural has a DEFINE PRINTER statement that allows you to specify some parameters, like DEST and FORMS, but double-sided isn’t one of them.

Hope that helps somewhat, a direction for further research.  
George

---

<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:** [July 7, 2021, 5:52pm UTC](https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648/3 "2021-07-07T17:52:57Z")

</div>

Years ago, printer manufacturers published their escape sequences. I’m not sure they do that any more. If you were able to find an escape sequence for “double-sided” in the Xerox documentation for the specific printer model, then you could send it to the printer prior to the first line of your report.

Mainframes reserve the first print position for carriage control, but printers expect escape sequences to begin in the first position, so you will need to use Natural’s CCONTROL keyword.

You define a (sequential) pair of printers.

```auto
DEFINE PRINTER (01) OUTPUT 'CMPRT02'
DEFINE PRINTER (02) OUTPUT 'CCONTROL'
WRITE (02) NOTITLE H'0102030405' /* Escape sequence for double-sided
WRITE (02) ' ' 'First line of report'

```

When you write to (02), the line is not prefixed with a carriage control character.

---

<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:** [October 5, 2021, 5:53pm UTC](https://techcommunity.softwareag.com/t/double-sided-printing-to-xerox-printer-from-mainframe-natural-program/242648/4 "2021-10-05T17:53:33Z")

</div>

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