To create the database from the OS/400 command line
-
At the OS/400 command prompt, type
WRKMBRPDM FILE(YourLibrary|YourSource)
- Press F6 to create a new source member called SQLTEXT with Source Type TXT.
-
Enter the following SQL command
CREATE COLLECTION LIBRARY_NAME
- Press F3 to exit.
- Press Enter to update.
-
To execute the commands, type
RUNSQLSTM SRCFILE(YourLibrary|YourSource) SRCMBR(SQLTEXT)