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?
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.
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.
Why bother building such a system when Software AG is giving everyone NaturalONE’s Eclipse-based editor for free?
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
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