We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
These additions are for internal use only.
Do not use them in application programs.
... CODE PAGE HINT cp
... USING subr$[(prog)$]
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 addition FROM wa is not allowed. The data is not exported to the database table. Instead, the subroutine subr is called for each row that would be written to the database without this addition. In the subroutine, the data can be accessed that would otherwise be written to the database table in the table work area dbtab.
The subroutine must either be defined in the same program or in a program, prog, specified explicitly. Its name must be prefixed with the name of the database table
("dbtab"). The subroutine must have a USING parameter of type any, but this is currently not supplied.