home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
3x400
/
dspm.lzh
/
DSPM.PGM
< prev
next >
Wrap
Text File
|
1989-01-11
|
3KB
|
44 lines
/* */
/* Function- File Member Maintenance & Selection */
/* Author - David J. Kraxner 04/12/85 - Date Written */
/* */
/* 04/03/85 DJK - Modified for QUSERMSG messages FFD5001 & FFD5002. */
/* 07/11/87 DJK - Compiled Only to Archive. */
/* */
PGM PARM(&FILENAME &CLRRMV)
/* */
DCL VAR(&FILENAME) TYPE(*CHAR) LEN(20)
DCL VAR(&CLRRMV) TYPE(*CHAR) LEN(1)
DCL VAR(&MEMBER) TYPE(*CHAR) LEN(10)
DCL VAR(&FILE) TYPE(*CHAR) LEN(10)
DCL VAR(&LIB) TYPE(*CHAR) LEN(10)
DCL VAR(&MSG) TYPE(*CHAR) LEN(74)
DCL VAR(&TEXT) TYPE(*CHAR) LEN(50)
MONMSG MSGID(CPF0000) /* Global Monitor Messages */
/* */
CHGVAR VAR(&FILE) VALUE(%SST(&FILENAME 1 10))
CHGVAR VAR(&LIB) VALUE(%SST(&FILENAME 11 10))
/* */
/* Builds Member List Work File */
/* */
DLTF FILE(DSPFDMWK.QTEMP)
DSPFD FILE(&FILE.&LIB) TYPE(*MBRLIST) OUTPUT(*NONE) +
OUTFILE(DSPFDMWK.QTEMP) OUTMBR(DSPFDMWK)
MONMSG MSGID(CPF3012) EXEC(GOTO CMDLBL(MSGLOOP))
/* */
/* File Member Maintenance & Selection Program */
/* */
CALL PGM(FFD500) PARM(&CLRRMV &MEMBER &TEXT)
SNDPGMMSG MSGID(FFD5001) MSGF(PKMSGF) MSGDTA(&MEMBER)
SNDPGMMSG MSGID(FFD5002) MSGF(PKMSGF) MSGDTA(&TEXT)
/* */
GOTO CMDLBL(ENDCLPGM)
/* */
MSGLOOP: RCVMSG RMV(*NO) MSG(&MSG)
IF COND(&MSG *GT ' ') THEN(SNDPGMMSG MSG(&MSG))
ELSE CMD(GOTO CMDLBL(ENDCLPGM))
GOTO CMDLBL(MSGLOOP)
/* */
ENDCLPGM: RETURN
ENDPGM