**********************************************************************************************
* GETHLPTXT: Download helptext from On-Line document files
* 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
* PGMR: MJR Mar'96
**********************************************************************************************
H DATEDIT(*YMD) DEBUG(*YES) OPTION(*NODEBUGIO : *SRCSTMT)
**********************************************************************************************
* FILES:
**********************************************************************************************
FDBGDFTD1 IF E K DISK
FDBGDFTH1 IF E K DISK
FQTXTSRC O E DISK RENAME(QTXTSRC:DATA)
**********************************************************************************************
* DATA STRUCTURES:
**********************************************************************************************
* PROGRAM NAME
D SDS
D PGM 10
D SDS#User 254 263
**********************************************************************************************
* ENTRY PARAMETERS:
**********************************************************************************************
C *ENTRY PLIST
C PARM DFDOCD
C PARM DFDOCH
**********************************************************************************************
* MAINLINE:
**********************************************************************************************
* Retrieve the document header
C DFDOCD CHAIN DBGDFTH1
B001 C IF %FOUND(DBGDFTH1)
* Write the document body
C DFDOCD SETLL DBGDFTD1
C DFDOCD READE DBGDFTD1
B002 C DOW NOT %EOF(DBGDFTD1)
C EVAL SRCDTA = DFTEXT
C EVAL SRCSEQ = SRCSEQ + 1
C WRITE DATA
C DFDOCD READE DBGDFTD1
E002 C ENDDO
E001 C ENDIF
*
C EVAL *INLR = *on
C RETURN
**********************************************************************************************