/* ************************************************************************** */
/* MAKEDBGTDY: Make all required DBG TDYPGMFSET utility objects               */
/* 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(&LIBRARY)   TYPE(*CHAR) LEN(10) VALUE('DBG400')
  DCL        VAR(&SRCLIB)    TYPE(*CHAR) LEN(10) VALUE('DBG400')
  DCL        VAR(&TYPE)      TYPE(*CHAR) LEN(1)
  RTVJOBA    TYPE(&TYPE)
  IF         COND(&TYPE *EQ '1') THEN(DO)
    SBMJOB     CMD(CALL PGM(MAKEDBGTDY))
    GOTO       CMDLBL(ENDPGM)
  ENDDO

  ADDLIBLE   LIB(&LIBRARY) POSITION(*AFTER QTEMP)
  MONMSG     MSGID(CPF0000)

/* Delete prior versions of objects, if there from an earlier MAKEDBGTDY */
/* Logicals */
  DLTF       FILE(&LIBRARY/DSPOBJDSV1)
  MONMSG     MSGID(CPF2105)
/* Physicals */
  DLTF       FILE(&LIBRARY/DSPOBJDSRV)
  MONMSG     MSGID(CPF2105)
  DLTF       FILE(&LIBRARY/DSPFDMBR)
  MONMSG     MSGID(CPF2105)
/* Display files */
/* Reports */
/* Programs */
  DLTPGM     PGM(&LIBRARY/TDYPGMSETC)
  MONMSG     MSGID(CPF2105)
  DLTPGM     PGM(&LIBRARY/TDYPGMFSET)
  MONMSG     MSGID(CPF2105)
/* Data Areas */
/* Commands */
  DLTCMD     CMD(&LIBRARY/TDYPGMFSET)
  MONMSG     MSGID(CPF2105)

/* Now create all required objects */
/* Physicals */
  DSPFD      FILE(&LIBRARY/*ALL) TYPE(*MBR) +
               OUTPUT(*OUTFILE) FILEATR(*LF) +
               OUTFILE(&LIBRARY/DSPFDMBR)
  DSPOBJD    OBJ(&LIBRARY/*ALL) OBJTYPE(*FILE) +
               DETAIL(*SERVICE) OUTPUT(*OUTFILE) +
               OUTFILE(&LIBRARY/DSPOBJDSRV)
/* Logicals */
  CRTLF      FILE(&LIBRARY/DSPOBJDSV1) +
               SRCFILE(&SRCLIB/QDDSSRC)
/* Displays */
  CRTDSPF    FILE(&LIBRARY/DBG186DF) +
               SRCFILE(&SRCLIB/QDDSSRC) RSTDSP(*YES)
/* Commands */
  CRTCMD     CMD(&LIBRARY/TDYPGMFSET) +
               PGM(&LIBRARY/TDYPGMSETC) +
               SRCFILE(&SRCLIB/QCMDSRC)
/* CL Programs */
  CRTCLPGM   PGM(&LIBRARY/TDYPGMSETC) +
               SRCFILE(&SRCLIB/QCLSRC)
/* RPG IV Programs */
  CRTBNDRPG  PGM(&LIBRARY/TDYPGMFSET) +
               SRCFILE(&SRCLIB/QRPGLESRC) DFTACTGRP(*YES)
/* Data areas */
/* Message descriptions */
/* Load On-line documents */

ENDPGM:
  RETURN
ENDPGM

-- MartinRowe - 24 Jun 2005
Topic revision: r1 - 24 Jun 2005 - 05:31:55 - MartinRowe
 
This site is powered by FoswikiCopyright © 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