# Natural System Programer's Guide

**URL:** <https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [July 23, 2019, 9:05am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724 "2019-07-23T09:05:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 23, 2019, 9:05am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/1 "2019-07-23T09:05:03Z")

</div>

hi

where can I find info about all Natural User Exits?  
I cannot locate a book like System Programer’s Guide

thanks  
João

---

<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 23, 2019, 4:37pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/2 "2019-07-23T16:37:23Z")

</div>

Natural’s user exits are not documented in a manual. Documentation is available on-line by entering the SYSEXT command.

User exits for Predict and Natural Security are documented in their respective manuals.

---

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 25, 2019, 8:27am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/3 "2019-07-25T08:27:04Z")

</div>

I’ve took a look on the SYSEXT and it is very helpfull. However I could not find the user exit I need. Is there any other user exit, perhaps inside the nucleus and written in assembler language, where I can intercept all WRITE and PRINT commands to redirect some of they?

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 29, 2019, 10:18am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/4 "2019-07-29T10:18:46Z")

</div>

can you explain a bit more of what you are trying to do? if you want to send your WRITE and PRINT commands to a file or whatever, just change your JCL. AFAIK there are not user exits provided to intercept these commands.

---

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 29, 2019, 6:42pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/5 "2019-07-29T18:42:23Z")

</div>

I cannot change the JCL because it’s online under CICS, so I’ll try relinking the nucleus to intercept WRITEs and PRINTs. 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:** [July 29, 2019, 7:05pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/6 "2019-07-29T19:05:49Z")

</div>

You didn’t answer Douglas’ question as to what it is you are trying to do, but, since you are asking about WRITE and PRINT statements in a CICS environment, I will presume that you are trying to capture an on-line report. You can do this, but it requires modification and recompilation of the source code.

At the beginning of the program, insert

```auto
DEFINE PRINTER (00) OUTPUT 'SOURCE'
```

The problem is that the report will no longer be visible online. It is directed to the source work area. You can see it by exiting the application to the NEXT prompt and issuing the Edit command.

---

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 29, 2019, 7:43pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/7 "2019-07-29T19:43:55Z")

</div>

yes, that is what I’m trying to do: CAPTURE the report. In this solution sent where is the report and how can I have it?

---

<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 29, 2019, 11:18pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/8 "2019-07-29T23:18:20Z")

</div>

I repeat:

After executing the program that generates the report, get to the NEXT prompt and enter EDIT.

The report will be “in the editor,” as some say. You can save it as a Natural text module. Use a batch job to extract it to a sequential file, if you like.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 30, 2019, 12:41am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/9 "2019-07-30T00:41:07Z")

</div>

Note that if you are using Natural 9 from NaturalOne, you won’t be able to “edit” the source work area (or “in the editor” as Ralph calls it), but you can still LIST it and SAVE it. You can also use the terminal command %C to capture a single screen to the source work area (if you just need an adhoc capture). %H=SOURCE will send the output to the source work area until you issue a %H- (see the Natural documentation for more options with %H).

Screen captures can also be done with %P, %I, %S, %E, %O terminal commands. Again, see the Natural docs.

There are software add-ons that enable you to print from CICS - you’ll need to check with your systems programmers to find out what options are available. Natural Advanced Facilities (NAF) and Entire System Server are two options from Software AG that may help if your installation has these or would be interested in acquiring them.

If you are using Entire Connection as your terminal emulator, you can redirect your printer output to a PC file (or printer).

---

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 30, 2019, 4:52pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/10 "2019-07-30T16:52:42Z")

</div>

Thank you Douglas and Ralph for your extensive and clear explanations. However I could not be so clear in my needs. In fact I’m the system programmer and I’m trying to develop a transparent solution that don’t need the user to enter in Natural environment and be able to send a report to a tcp/ip printer in my network.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 31, 2019, 2:22am UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/11 "2019-07-31T02:22:46Z")

</div>

Then it sounds like you really need Natural Advanced Facilities.

See the docs at [https://techcommunity.softwareag.com/ecosystem/documentation/natural/nat827mf/naf\_mf/naf\_mf-over.htm](https://techcommunity.softwareag.com/ecosystem/documentation/natural/nat827mf/naf_mf/naf_mf-over.htm) and contact your local Software AG representative.

---

<div class="post-metadata">

**Author:** ![J-R](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Post date:** [July 31, 2019, 6:51pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/12 "2019-07-31T18:51:41Z")

</div>

ok thank you  
regards

---

<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:43pm UTC](https://techcommunity.softwareag.com/t/natural-system-programers-guide/204724/13 "2021-04-02T15:43:10Z")

</div>


