Skip to content

Commit

Permalink
Update pgdump.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschoen authored Jun 24, 2024
1 parent e914398 commit 1f1c311
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions samples/pgdump.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,29 @@
CMD PROMPT('Backup Postgres DB via pg_dump')
PARM KWD(DATABASE) TYPE(*CHAR) LEN(255) MIN(1) +
CASE(*MIXED) PROMPT('Postgres database name')
PARM KWD(OUTPUTFILE) TYPE(*CHAR) LEN(255) MIN(1) +
PARM KWD(OUTPUTFILE) TYPE(*CHAR) LEN(255) +
DFT(*DBTEMPDATETIME) +
SPCVAL((*DBTEMPDATETIME *DBTEMPDATETIME) +
(*DBTEMPDATE *DBTEMPDATE)) MIN(0) +
CASE(*MIXED) PROMPT('To IFS output file')
PARM KWD(FORMAT) TYPE(*CHAR) LEN(10) DFT('t') +
CASE(*MIXED) PROMPT('Database dump output +
format')
PARM KWD(OPTIONS) TYPE(*CHAR) LEN(100) DFT('-p +
5432 -U postgres') CASE(*MIXED) +
PROMPT('Options')
5432 -U postgres --verboase') +
CASE(*MIXED) PROMPT('Options')
PARM KWD(PROMPT) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) CASE(*MIXED) +
PROMPT('Prompt for QSHBASH')
PARM KWD(REPLACE) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) CASE(*MIXED) +
PROMPT('Replace output file')
PARM KWD(DSPSTDOUT) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) PROMPT('Display +
Standard Output Result')
PARM KWD(LOGSTDOUT) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) PROMPT('Log +
standard output to job log')
PARM KWD(PRTSTDOUT) TYPE(*CHAR) LEN(4) RSTD(*YES) +
DFT(*NO) VALUES(*NO *YES) PROMPT('Print +
Standard Output Result')

0 comments on commit 1f1c311

Please sign in to comment.