/* ************************************************************************** */
/* CRTCSVSTMF: Create .csv Streamfile                                         */
/* Copyright (C) 2001  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 */
/* ************************************************************************** */
             CMD        PROMPT('Create .csv Streamfile')
             PARM       KWD(SOURCE) TYPE(NAME1) MIN(1) PROMPT('File +
                          to copy')
             PARM       KWD(MEMBER) TYPE(*NAME) DFT(*FIRST) +
                          SPCVAL((*FIRST *FIRST)) PROMPT('Member name')
             PARM       KWD(TARGET) TYPE(*PNAME) LEN(256) MIN(1) +
                          CASE(*MIXED) PROMPT('Target csv file to +
                          create')
             PARM       KWD(COLHDG) TYPE(*CHAR) LEN(7) RSTD(*YES) +
                          DFT(*NONE) VALUES(*COLHDG *FIELD *NONE +
                          *TEXT) PROMPT('Column headings in To file')
             PARM       KWD(FLDDEL) TYPE(*CHAR) LEN(1) DFT(',') +
                          PROMPT('Field delimiter')
             PARM       KWD(RPLFLDDEL) TYPE(*CHAR) LEN(1) DFT('.') +
                          PROMPT('Replacement field delimiter')
             PARM       KWD(STRDEL) TYPE(*CHAR) LEN(1) DFT('"') +
                          PROMPT('String delimiter')
             PARM       KWD(RPLSTRDEL) TYPE(*CHAR) LEN(1) DFT('`') +
                          PROMPT('Replacement string delimiter')
             PARM       KWD(STMFOPT) TYPE(*CHAR) LEN(8) RSTD(*YES) +
                          DFT(*REPLACE) VALUES(*REPLACE *ADD) +
                          PROMPT('Stream file option')
             PARM       KWD(STMFCODPAG) TYPE(*CHAR) LEN(9) +
                          DFT(*STMF) SPCVAL((*STMF) (*STDASCII) +
                          (*PCASCII)) PROMPT('Stream file code page')
             PARM       KWD(ENDLINFMT) TYPE(*CHAR) LEN(6) RSTD(*YES) +
                          DFT(*CRLF) VALUES(*CRLF *CR *LF *LFCR +
                          *FIXED) PROMPT('End of line characters')

 NAME1:      QUAL       TYPE(*NAME) LEN(10)
             QUAL       TYPE(*CHAR) LEN(10) DFT(*LIBL) +
                          PROMPT('Library')

-- MartinRowe - 24 Jun 2005
Topic revision: r2 - 01 Oct 2014 - 19:37:01 - UnknownUser
 
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