To generate automatically a data processing program for referring to,
updating, and deleting the date of a table of a database, using a cursor
definition statement. Specification input means accepts specifications.
The specification input means outputs the specifications into next stages
for acquiring program skeleton customize information, cursor definition
information and output item processing information. On the basis of these
information, three statements are made: a cursor definition statement, a
work variable definition statement and an output processing statement
depending on the specified processing type (insert, update, delete). An
object program is generated by combining these statements, a program
skeleton and program skeleton customize information. Concretely, the
combining means inserts these statements into the respective corresponding
inserting positions of the program skeleton, including the program of a
fixed portion regardless of the content of specifications and an inserting
position of a piece of the program corresponding to a portion changeable
according to specifications, thereby completing the object program.