I have written a PL/SQL procedure which includes:
PROCEDURE RegisterCompound( .... SELECT MOSAIC_INFO.SEQ_CLI_BATCH.NEXTVAL INTO batchKey FROM DUAL; .