set g_errno in getCollRec()