# Loading and unloading from REXX

**URL:** <https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [April 6, 2020, 4:41pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782 "2020-04-06T16:41:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walter\_Falby](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@Walter\_Falby](https://techcommunity.softwareag.com/u/Walter_Falby)\
**Post date:** [April 6, 2020, 4:41pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/1 "2020-04-06T16:41:42Z")

</div>

I want to load and unload Natural objects using REXX code. I can edit and list Natural objects from REXX but I don’t see anything happening when I try to unload a Natural object. Where should I look for any messages that may be written for this type of function?

---

<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 6, 2020, 6:00pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/2 "2020-04-06T18:00:45Z")

</div>

What utilities/programs are you using for the unload and load?

What is the purpose of the unload? Backup? Code manipulation?

Natural writes its messages to CMPRINT.

---

<div class="post-metadata">

**Author:** ![Walter\_Falby](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@Walter\_Falby](https://techcommunity.softwareag.com/u/Walter_Falby)\
**Post date:** [April 6, 2020, 7:35pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/3 "2020-04-06T19:35:30Z")

</div>

I’m using SYSOBJH. The ultimate goal source code maintenance in a system external to Natural. I allocate a CMPRINT dataset but it is empty.

---

<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 7, 2020, 9:46pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/4 "2020-04-07T21:46:12Z")

</div>

Why bother building such a system when Software AG is giving everyone NaturalONE’s Eclipse-based editor for free?

---

<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:** [April 8, 2020, 8:13pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/5 "2020-04-08T20:13:53Z")

</div>

I haven’t ever used SYSOBJH, but the Utilities manual for it indicates any report (and I presume any error message) is written out to a Natural text member in Natural library WORKPLAN. If you don’t have a WORKPLAN library, there is a way to change the default name in the SYSOBJH profile settings.

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat825mf/utis/sysobjh\_gen\_info.htm#sysobjh\_gen\_info\_Batch\_or\_Dir](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat825mf/utis/sysobjh_gen_info.htm#sysobjh_gen_info_Batch_or_Dir)

> [@](#):
>
> Text Members for Reports, Restarts and Traces
> 
> Report, restart and trace data created by the Object Handler are stored as Natural text members (Natural objects of the type Text) in the Workplan library. The Object Handler generates names for text members that have not been explicitly specified in the Options window. The names generated are a combination of the weekday and the time. For example: a member with the name 21415568 was created on Tuesday (the second day of the week) at 14:15:56,8.
> 
> You can specify the Workplan library in which the text members are stored by using the Workplan-Library profile option of the Object Handler described in Profile Settings. If your Natural session uses a read-only FNAT or FUSER system file as specified with the ROSY=ON profile parameter (see the Parameter Reference documentation), the text members are stored in a scratch-pad file (see the Operations documentation) under one of the following conditions:
> 
> ```
> The database ID and file number specified for the Workplan library is identical to the current FNAT or FUSER system file.
> 
> No database ID and file number are specified for the Workplan library.
> 
> ```

If running in batch, there also appears to be a BATCHREPORT option you can request that writes to the SYSOUT DD.

Hope that helps,  
George

---

<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:44pm UTC](https://techcommunity.softwareag.com/t/loading-and-unloading-from-rexx/207782/6 "2021-04-02T15:44:28Z")

</div>


