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

# GENDFLT.PUB

GENDFLT.PUB is a public program for retrieving workstation default information for the current terminal.

0100 ENTER OSDF,TERM$,USER$,DF1$,DF2$,DF3$[ALL],DF4$[ALL],DF5[ALL],STAT

Variable | Description
OSDF | The FILE[] array index on which OSDF is open
TERM$ | The terminal ID of the terminal
USER$ | The user name for the terminal
DF1$,DF2$, DF3$[ALL], DF4$[ALL], DF5$[ALL], | OSDF record data
STAT | The BBx error that occurred, if any

Exit Points | Explanation
EXIT | GENDFLT.PUB does not return any errors.
EXIT ERR | Sets STAT to the BBx error and EXITs.

GENDFLT.PUB reads the OSDF file using the terminal ID supplied, sets USER$, and returns in the DFx$ variables the data read.