To create a new collection, call the JagNewCollection routine. This routine:
Creates a new collection with the specified lock level, returns a reference to that collection, and sets *pExists to JAG_FALSE, or
Returns a reference to the existing collection with the specified name and sets *pExists to JAG_TRUE. The input lock level is ignored, and the collection’s current lock level is returned in *pLockLevel.
Lock level must be set to one of the following:
JAG_LOCKCOLLECTION – allows locks to be set on collections
JAG_LOCKDATA – does not allow locks to be set on collections