Skip to content

Commit

Permalink
Create QSHQRYSRC.CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschoen authored Jul 26, 2024
1 parent 286f895 commit 7eb657b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions QSHQRYSRC.CMD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CMD PROMPT('SQL Query Src to Temp Table')
PARM KWD(SRCFILE) TYPE(QUAL1) MIN(1) MAX(1) +
PROMPT('SQL source file' 2)
PARM KWD(SRCMBR) TYPE(*CHAR) LEN(10) MIN(1) +
EXPR(*YES) CASE(*MONO) PROMPT('Source +
member' 3)
PARM KWD(IFSFILE) TYPE(*CHAR) LEN(255) DFT(*NONE) +
SPCVAL((*NONE ' ')) MAX(1) PROMPT('SQL +
IFS source file' 4)
PARM KWD(OUTFILE) TYPE(QUAL2) MIN(0) MAX(1) +
PROMPT('Temp file to receive results' 5)
PARM KWD(EMPTYERROR) TYPE(*CHAR) LEN(4) +
RSTD(*YES) DFT(*YES) VALUES(*NO *YES) +
MIN(0) MAX(1) PROMPT('Escape error if no +
result data' 6)
PARM KWD(PROMPT) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) MIN(0) MAX(1) +
PROMPT('Prompt RUNSQL' 7)
PARM KWD(DLTTMPSRC) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*YES) VALUES(*NO *YES) MIN(0) MAX(1) +
PROMPT('Delete temp source file after' 7)
PARM KWD(SQLLOC) TYPE(*CHAR) LEN(10) RSTD(*YES) +
DFT(*SRCMBR) VALUES(*SRCMBR *IFSFILE) +
MIN(0) MAX(1) PROMPT('SQL source from +
location type' 1)
QUAL2: QUAL TYPE(*NAME) LEN(10) DFT(SQLTMP0001) EXPR(*YES)
QUAL TYPE(*NAME) LEN(10) DFT(QTEMP) EXPR(*YES) +
PROMPT('Library')
QUAL1: QUAL TYPE(*NAME) LEN(10) MIN(1) EXPR(*YES)
QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) SPCVAL((*LIBL +
*LIBL)) EXPR(*YES) PROMPT('Library')

0 comments on commit 7eb657b

Please sign in to comment.