Q: How can I create a library using ODBC? I will be using Visual Basic (VB). I can use SQL passthrough to issue OS/400 SQL commands directly, but I don't know the SQL command to create a library.
A: The SQL command to create a library is "CREATE COLLECTION". The command will also create a journal, journal receiver, and catalog views for the collection. Any subsequent CREATE TABLEs added into the collection will automatically be journaled.
- Brian Singleton
LATEST COMMENTS
MC Press Online