# print form linux

**URL:** <https://techcommunity.softwareag.com/t/print-form-linux/181475>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix\
**Created:** [April 15, 2015, 12:32pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475 "2015-04-15T12:32:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [April 15, 2015, 12:32pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/1 "2015-04-15T12:32:51Z")

</div>

Hi,

We run in batch:

```auto

natural bp=x parm=x batchmode stack=/("logon a;write1;write1;fin") cmprnt01=/tmp/1.prt
```

where write1 is a simple program:

```auto

define data
local
1 #a (a10)
end-define
define printer (1)
write (1) "hello"
end
```

I assume we will get twice “hell” in the printer file (on the ibm/vse is working like that),  
but we get only once “hello”.  
The second program override our printnig file.

Can someone help?

Hezi

---

<div class="post-metadata">

**Author:** ![Giles](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@Giles](https://techcommunity.softwareag.com/u/Giles)\
**Post date:** [April 15, 2015, 1:25pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/2 "2015-04-15T13:25:05Z")

</div>

Can you try defining the print file to append ?

DISP KEEP

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [April 15, 2015, 1:39pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/3 "2015-04-15T13:39:41Z")

</div>

How can I do it in Linux?

---

<div class="post-metadata">

**Author:** ![Giles](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@Giles](https://techcommunity.softwareag.com/u/Giles)\
**Post date:** [April 15, 2015, 1:42pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/4 "2015-04-15T13:42:05Z")

</div>

I don’t have aceess to open systems right now to try myself.  
check out the manual  
[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6314unx/sm/definepr\_uw.htm#define\_printer\_disp\_definepr\_uw](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6314unx/sm/definepr_uw.htm#define_printer_disp_definepr_uw)

---

<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 15, 2015, 6:33pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/5 "2015-04-15T18:33:39Z")

</div>

There is no option like this for PRINT files, only for work files as in

```auto

DEFINE WORK FILE n '/tmp/1.prt' ATTRIBUTES 'APPEND'
```

---

<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:** [April 16, 2015, 7:27am UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/6 "2015-04-16T07:27:26Z")

</div>

I have an idea but cannot test it, as I have restricted access under Unix. It works under Windows. Perhaps you can find the equivalent under Linux. Give it a try.

Running the Natural Configuration utility (NATPARM), I select a member and open Natural Execution Configuration → Device/Report Assignments. Under Devices I click on Setup for LPT1 and a window pops up in which I specify the Physical specification of “\>\> C:\Print1.prt”, and I check the box for Print to file.

All my Natural output written to (01) is appended to c:\Print1.prt.

---

<div class="post-metadata">

**Author:** ![johnnie\_walk](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@johnnie\_walk](https://techcommunity.softwareag.com/u/johnnie_walk)\
**Post date:** [May 27, 2015, 8:27am UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/7 "2015-05-27T08:27:23Z")

</div>

Nice Information Provided.

---

<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, 3:33pm UTC](https://techcommunity.softwareag.com/t/print-form-linux/181475/8 "2021-04-02T15:33:14Z")

</div>


