You are here: Development Standards > Routines > General Routines > GENGETSS.PUB

# GENGETSS.PUB

GENGETSS.PUB is a public program that retrieves and returns to the CALLing program the next available sort sequence number that is used to create scratchfiles in version 7.0 and higher.

This routine is CALLed from both RMSETUP and RMRUNAP to ensure that the scratch files created in programs run from the MDI menu are uniquely named.

`0100 ENTER SEQ$,ERRMSG$`

Variable | Description
SEQ$ | The 3-character sequence number to be used in naming scratch files.
ERRMSG$ | A message returned by GENGETSS.PUB if an error occurs during processing.

Exit Points | Explanation
EXIT | GENGETSS.PUB does not return an error value.