<verbatim> /* ************************************************************************** */ /* DBG110CL: Menu for all the DBG utilities */ /* Copyright (C) 2000 Martin Rowe <martin@dbg400.net> */ /* */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* ************************************************************************** */ PGM DCL VAR(&PGM) TYPE(*CHAR) LEN(10) VALUE('DBG110CL') DCL VAR(&LIBTEXT) TYPE(*CHAR) LEN(50) DCL VAR(&USER) TYPE(*CHAR) LEN(10) DCLF FILE(DBG110DF) MONMSG MSGID(CPF0000) EXEC(GOTO CMDLBL(ENDPGM)) /* ************************************************************************** */ /* START OF MAINLINE CODE */ /* ************************************************************************** */ LOOP: SNDRCVF RCDFMT(MNUBARR) IF COND(&IN01) THEN(DO) CALL PGM(DBG010R4) PARM(&PGM) GOTO CMDLBL(LOOP) ENDDO IF COND(&IN03) THEN(GOTO CMDLBL(ENDPGM)) IF COND(&SELEC *EQ 1) THEN(DO) IF COND(&OPTION *EQ 1) THEN(DO) RTVJOBA USER(&USER) CHGVAR VAR(&LIBTEXT) VALUE('DBG Library for' |> &USER) ? CRTLIB TYPE(*TEST) ??TEXT(&LIBTEXT) ENDDO IF COND(&OPTION *EQ 2) THEN(DO) ? CRTPGMFSET ENDDO GOTO CMDLBL(LOOP) ENDDO IF COND(&SELEC *EQ 2) THEN(DO) IF COND(&OPTION *EQ 1) THEN(DO) EDTDBGLNK ENDDO GOTO CMDLBL(LOOP) ENDDO IF COND(&SELEC *EQ 3) THEN(DO) IF COND(&OPTION *EQ 1) THEN(DO) ? CRTDBGSCP ??SCRIPTTYPE(*CPYF) ENDDO IF COND(&OPTION *EQ 2) THEN(DO) EDTDBGSCP ENDDO IF COND(&OPTION *EQ 3) THEN(DO) ? EXCDBGSCP MODE(*CHK) ENDDO IF COND(&OPTION *EQ 4) THEN(DO) ? EXCDBGSCP MODE(*RUN) ENDDO GOTO CMDLBL(LOOP) ENDDO IF COND(&SELEC *EQ 4) THEN(DO) IF COND(&OPTION *EQ 1) THEN(RETURN) GOTO CMDLBL(LOOP) ENDDO IF COND(&SELEC *EQ 5) THEN(DO) IF COND(&OPTION *EQ 1) THEN(DO) CALL PGM(DBG010R4) PARM(&PGM) ENDDO GOTO CMDLBL(LOOP) ENDDO GOTO CMDLBL(LOOP) ENDPGM: RETURN ENDPGM </verbatim> -- Main.MartinRowe - 24 Jun 2005
This topic: DBG400
>
SourceCodeList
>
ClSource
>
ClDBG110CL
Topic revision: r1 - 24 Jun 2005 - 05:09:57 -
MartinRowe
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DBG/400?
Send feedback