Uses a new spooled file handle to generate a spooled file handle. See notes below about using this API on a new spool file that was created with data type automatic.
unsigned int CWB_ENTRY cwbOBJ_GetSplFHandleFromNewSplF(
cwbOBJ_ObjHandle newSplFHandle,
cwbOBJ_ObjHandle *splFHandle,
cwbSV_ErrHandle errorHandle);
The following list shows common return values.
The handle returned in splFHandle must be released with the cwbOBJ_DeleteObjHandle() API in order to free resources.
If you are using automatic data typing for the spooled file (the attribute of CWBOBJ_KEY_PRTDEVTYPE was set to *AUTO or or wasn't specified on the cwbOBJ_CreateNewSplF() API) then creation of the spooled file will be delayed until sufficient data has been written to the spooled file to determine the type of the data (*SCS, *AFPDS or *USERASCII). If the new spooled file is in this state when you call this API, the return code will be CWBOBJ_RC_SPLFNOTOPEN.