Activating the Write Adapter

In this section:

Reference:

Before you can use any commands that write to an Adabas data source, you must make the following edits to the Master and Access Files:

In the Master File:

In the Access File:

We recommend the use of CALLTYPE=FIND instead of CALLTYPE=RL.


Top of page

x
Reference: AUTOADBS Considerations

You can use AUTOADBS to create a Read version of the Master File. To convert it to a Write version, change the SEGTYPE value in all segments to S0.


Top of page

x
Limitations on Options Described for the Adapter

When using the Write adapter, the adapter automatically sets the values of the following two options:


Top of page

x
Fields That Cannot be Updated

Reference:

For both MODIFY and Maintain, certain types of fields listed in the Master File cannot be updated. In some cases, the update commands are ignored, and in some cases they generate errors. The following sections contain a detailed explanation.



x
Reference: Using Synonyms

In a Master File, two or more field declarations can refer to the same Adabas field. Each duplicate field declaration after the first is called a synonym. Synonyms can be used in commands that print, but cannot be used in commands that change the data source. The following actions occur as a result of using synonyms in INCLUDE/UPDATE commands:



x
Reference: Fields That Cannot Be Updated in MODIFY

In MODIFY, update commands for the following types of fields are ignored:

In MODIFY, update commands for the following types of fields generate an error:



x
Reference: Fields That Cannot Be Updated in Maintain

Maintain generates an error in response to update commands for the following types of fields:


Top of page

x
Checking Adabas Return Codes and FOCUS Error Message Numbers

The Dialogue Manager status return variable &RETCODE indicates the status of FOCUS requests. You can use it to test Adabas return codes. The &RETCODE variable contains the last return code resulting from an executed report request or MODIFY request.

In a Dialogue Manager request, you can use a -IF statement to test the &RETCODE value against a specified Adabas return code. Then, you can take corrective actions based on the result of the -IF test. An Adabas return code of zero (0) indicates a successful execution, a non-zero return code indicates an error.

Another useful Dialogue Manager variable, &FOCERRNUM, stores the last FOCUS or adapter (not Adabas) error number generated by the execution of a FOCEXEC. See your FOCUS documentation for information about &FOCERRNUM and other statistical variables.


Information Builders