11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If successful, $SORTBEGIN returns a non-zero integer value. If unsuccessful, $SORTBEGINreturns zero.If you establish a $SORTBEGIN global, and then issue a $SORTBEGIN for an ancestoror descendent of that global, <strong>Caché</strong> issues a error. For example, if youinvoke $SORTBEGIN(^test(1,2,3)), the following function calls result in a error: $SORTBEGIN(^test(1,2)) or $SORTBEGIN(^test(1,2,3,4)).See Also• $SORTEND function$SORTEND$SORTENDConcludes the sorting mode initiated by $SORTBEGIN to improve performance of multiplesets to a global.$SORTEND(set_global,dosort)Parametersset_globaldosortA global variable name.Optional — A flag parameter. If 1, <strong>Caché</strong> performs the sort operationinitiated by $SORTBEGIN and copies the sorted data into set_global.If 0, <strong>Caché</strong> terminates the sort operation without copying any data.The default is 1.Description$SORTEND specifies the end of a special sorting mode initiated by $SORTBEGIN on aspecific target global. The value of set_global must match the corresponding parameterspecified for $SORTBEGIN.If successful, $SORTEND returns the total number of global nodes set as an integer value.If unsuccessful, $SORTEND returns -1.See Also• $SORTBEGIN function<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 299

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!