These additions are for internal use only.
Do not use them in application programs.
1. ... CODE PAGE HINT cp
2. ... USING subr
... CODE PAGE HINT cp
: In cp, you can specify a codepage from database table TCP00, which overwrites the automatically stored ID.
... USING subr
: This addition can be specified for EXPORT TO DATABASE if a table work area dbtab is declared for the relevant database table using TABLES. The FROM wa addition is not allowed. The data is not exported to the database table. Instead, the subroutine subr is called for each line that would be written to the database without this addition. In the subroutine, you can access the data in the table work area dbtab that would otherwise be written to the database table.
The subroutine must be defined in the same program and its name must contain the name of the database
table as a prefix "dbtab_". The subroutine must have a USING
parameter of the type any, which is currently not supplied.
: See IMPORT - Internal Additions