The Database Manager CLI works in script mode, if you use the option –i when calling the program to specify an input script <file_name>, which contains the DBM commands to be processed by the Database Manager. The input script is executed. The session and the Database Manager CLI program then end.
Use the following input options in the script:
dbmcli –i <file_name>