|
This note may have got sent previously. If so, I apologize. You can only change a command default for a command parameter than has a default. This might help: *************** Beginning of data ************************************* 0001.00 /* CRTCMD CMD(QSYS/CRTRPGPGM) + */ 0002.00 /* PGM(QDEVTOOLS/QRG1) + */ 0003.00 /* SRCFILE(whatever) + */ 0004.00 /* SRCMBR(CRTRPGPGM) + */ 0005.00 /* TEXT('Create RPG/400 Program') + */ 0006.00 /* MODE(*ALL) ALLOW(*ALL) MAXPOS(3) + */ 0007.00 /* PMTFILE(QDEVTOOLS/QRPGMSG) + */ 0008.00 /* HLPSCHIDX(*NONE) + */ 0009.00 /* HLPPNLGRP(*LIBL/QHRGCMD) + */ 0010.00 /* HLPID(CRTRPGPGM) */ 0011.00 0012.00 CMD PROMPT('Create RPG/400 Program') 0013.00 PARM KWD(PGM) TYPE(Q0831) PGM(*YES) CHOICE (*NONE) + 0014.00 PROMPT('Program' 1) 0015.00 PARM KWD(SRCFILE) TYPE(Q089F) FILE(*IN) + 0016.00 CHOICE(*NONE) PROMPT('Source file' 2) 0017.00 PARM KWD(SRCMBR) TYPE(*NAME) LEN(10) DFT(*PGM) + 0018.00 SPCVAL((*PGM)) EXPR(*YES) PROMPT('Source + 0019.00 member' 3) 0020.00 PARM KWD(OPTION) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0021.00 SPCVAL((*SOURCE 1) (*NOSOURCE 2) (*SRC 1) + 0022.00 (*NOSRC 2) (*XREF 3) (*NOXREF 4) (*GEN 5) + 0023.00 (*NOGEN 6) (*DUMP 7) (*NODUMP 8) (*SECLVL + 0024.00 9) (*NOSECLVL A) (*SRCDBG B) (*NOSRCDBG + 0025.00 C) (*LSTDBG D) (*NOLSTDBG E)) MAX(14) + 0026.00 EXPR(*YES) PMTCTL(*PMTRQS) PROMPT('Source + 0027.00 listing options' 10) 0028.00 PARM KWD(GENOPT) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0029.00 SPCVAL((*LIST 1) (*NOLIST 2) (*XREF 3) + 0030.00 (*NOXREF 4) (*ATR 5) (*NOATR 6) (*DUMP 7) + 0031.00 (*NODUMP 8) (*PATCH 9) (*NOPATCH A) + 0032.00 (*OPTIMIZE B) (*NOOPTIMIZE C)) MAX(10) + 0033.00 EXPR(*YES) PMTCTL(*PMTRQS) + 0034.00 PROMPT('Generation options' 11) 0035.00 PARM KWD(INDENT) TYPE(*CHAR) LEN(2) DFT(*NONE) + 0036.00 SPCVAL((*NONE '')) EXPR(*YES) VARY(*YES) + 0037.00 PMTCTL(*PMTRQS) PROMPT('Source listing + 0038.00 indentation' 12) 0039.00 PARM KWD(CVTOPT) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0040.00 DFT(*NONE) SPCVAL((*DATETIME 1) (*VARCHAR + 0041.00 2) (*GRAPHIC 3)) SNGVAL((*NONE 0)) MAX(3) + 0042.00 EXPR(*YES) PMTCTL(*PMTRQS) PROMPT('Type + 0043.00 conversion options' 13) 0044.00 PARM KWD(SRTSEQ) TYPE(Q0979) DFT(*HEX) + 0045.00 SNGVAL((*HEX) (*JOB) (*JOBRUN) + 0046.00 (*LANGIDUNQ) (*LANGIDSHR)) + 0047.00 PMTCTL(*PMTRQS) PROMPT('Sort sequence' 14) 0048.00 PARM KWD(LANGID) TYPE(*NAME) LEN(7) DFT(*JOBRUN) + 0049.00 SPCVAL((*JOBRUN) (*JOB)) CHOICE(*PGM) + 0050.00 CHOICEPGM(QSYS/QLGPMCHC) PMTCTL(*PMTRQS) + 0051.00 PROMPT('Language identifier' 15) 0052.00 PARM KWD(SAAFLAG) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0053.00 DFT(*NOFLAG) SPCVAL((*NOFLAG X'00') + 0054.00 (*FLAG X'80')) EXPR(*YES) PMTCTL(*PMTRQS) + 0055.00 PROMPT('SAA flagging' 16) 0056.00 PARM KWD(GENLVL) TYPE(*DEC) LEN(2 0) DFT(9) + 0057.00 RANGE(0 99) PROMPT('Generation severity + 0058.00 level' 4) 0059.00 PARM KWD(PRTFILE) TYPE(Q0912) CHOICE(*NONE) + 0060.00 PMTCTL(*PMTRQS) PROMPT('Print file' 17) 0061.00 PARM KWD(RPTOPT) TYPE(*CHAR) LEN(1) CONSTANT(' ') 0062.00 PARM KWD(OUTFILE) TYPE(*NAME) LEN(10) CONSTANT(X) + 0063.00 FILE(*OUT) 0064.00 PARM KWD(OUTMBR) TYPE(*NAME) LEN(10) CONSTANT(X) 0065.00 PARM KWD(REPLACE) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0066.00 DFT(*YES) SPCVAL((*YES 1) (*NO 0)) + 0067.00 PMTCTL(*PMTRQS) PROMPT('Replace program' 18) 0068.00 PARM KWD(TGTRLS) TYPE(*SNAME) LEN(8) + 0069.00 DFT(*CURRENT) SPCVAL((*CURRENT) (*PRV)) + 0070.00 CHOICE(*PGM) CHOICEPGM(QSYS/QBNTGTRL) + 0071.00 PMTCTL(*PMTRQS) PROMPT('Target release' 19) 0072.00 PARM KWD(USRPRF) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0073.00 DFT(*USER) SPCVAL((*USER 0) (*OWNER 1)) + 0074.00 PMTCTL(*PMTRQS) PROMPT('User profile' 20) 0075.00 PARM KWD(AUT) TYPE(*NAME) LEN(10) DFT (*LIBCRTAUT) + 0076.00 SPCVAL((*LIBCRTAUT) (*ALL) (*CHANGE) + 0077.00 (*USE) (*EXCLUDE)) PMTCTL(*PMTRQS) + 0078.00 PROMPT('Authority' 21) 0079.00 PARM KWD(TEXT) TYPE(*CHAR) LEN(50) + 0080.00 DFT(*SRCMBRTXT) SPCVAL((*SRCMBRTXT) + 0081.00 (*BLANK ' ')) EXPR(*YES) VARY(*YES) + 0082.00 PASSATR(*YES) PROMPT('Text + 0083.00 ''description''' 8) 0084.00 PARM KWD(PHSTRC) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0085.00 DFT(*NO) SPCVAL((*NO 0) (*YES 1)) + 0086.00 PMTCTL(*PMTRQS) PROMPT('Phase trace' 22) 0087.00 PARM KWD(ITDUMP) TYPE(*CHAR) LEN(50) DFT(*NONE) + 0088.00 SPCVAL((*NONE ' ')) EXPR(*YES) + 0089.00 PMTCTL(*PMTRQS) PROMPT('Intermediate text + 0090.00 dump' 23) 0091.00 PARM KWD(SNPDUMP) TYPE(*CHAR) LEN(50) DFT(*NONE) + 0092.00 SPCVAL((*NONE ' ')) EXPR(*YES) + 0093.00 PMTCTL(*PMTRQS) PROMPT('Snap dump' 24) 0094.00 PARM KWD(CODELIST) TYPE(*CHAR) LEN(50) DFT (*NONE) + 0095.00 SPCVAL((*NONE ' ') (*ALL)) EXPR(*YES) + 0096.00 PMTCTL(*PMTRQS) PROMPT('Codelist' 25) 0097.00 PARM KWD(IGNDECERR) TYPE(*CHAR) LEN(1) RSTD (*YES) + 0098.00 DFT(*NO) SPCVAL((*NO 0) (*YES 1)) + 0099.00 PMTCTL(*PMTRQS) PROMPT('Ignore decimal + 0100.00 data error' 26) 0101.00 PARM KWD(ALWNULL) TYPE(*CHAR) LEN(1) RSTD(*YES) + 0102.00 DFT(*NO) SPCVAL((*NO 0) (*YES 1)) + 0103.00 PMTCTL(*PMTRQS) PROMPT('Allow null + 0104.00 values' 27) 0105.00 PARM KWD(S38VIEW) TYPE(*LGL) LEN(1) CONSTANT ('0') 0106.00 Q0831: QUAL TYPE(*NAME) LEN(10) DFT(*CTLSPEC) + 0107.00 SPCVAL((*CTLSPEC)) EXPR(*YES) 0108.00 QUAL TYPE(*NAME) LEN(10) DFT(*CURLIB) + 0109.00 SPCVAL((*CURLIB *CURLIB)) EXPR(*YES) + 0110.00 PROMPT('Library') 0111.00 Q089F: QUAL TYPE(*NAME) LEN(10) DFT(QRPGSRC) + 0112.00 SPCVAL((QRPGSRC)) EXPR(*YES) 0112.00 SPCVAL((QRPGSRC)) EXPR(*YES) 0113.00 QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) + 0114.00 SPCVAL((*LIBL) (*CURLIB *CURLIB)) + 0115.00 EXPR(*YES) PROMPT('Library') 0116.00 Q0912: QUAL TYPE(*NAME) LEN(10) DFT(QSYSPRT) EXPR(*YES) 0117.00 QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) + 0118.00 SPCVAL((*LIBL) (*CURLIB *CURLIB)) + 0119.00 EXPR(*YES) PROMPT('Library') 0120.00 Q0979: QUAL TYPE(*NAME) LEN(10) MIN(1) EXPR(*YES) 0121.00 QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) + 0122.00 SPCVAL((*LIBL) (*CURLIB *CURLIB)) + 0123.00 EXPR(*YES) PROMPT('Library') ****************** End of data **************************************** In fairness, I should point out that your own command with IBM's CPP likely will be level 40 compliant. You could make your own command to call IBM's or yopur own custom option in PDM. Al Al Barsa, Jr. Barsa Consulting Group, LLC 400>390 914-251-1234 914-251-9406 fax http://www.barsaconsulting.com http://www.taatool.com "JIM LANGSTON" <JLANGSTON@CELSINC. To: "MIDRANGE-L" <MIDRANGE-L@midrange.com> COM> cc: Sent by: Subject: Default for command without default value? owner-midrange-l@mi drange.com 07/30/01 12:25 PM Please respond to MIDRANGE-L Hi, I tried to add a default value to the CRTRPGPGM command for the OPTION parameter for *SRCDBG to always compile with debug information. Error came back that OPTION didn't have a default parameter, so I could't change it. Makes sense, but begs the question, how do I add a default value to a command parameter without a current default parameter? I would guess I would have to recompile the command, which I can't find for the system commands, so would have have to create my own command and set all the defaults I wanted and stick it higher in my library list not to mess with the system command. Seems like a bit of a headache getting all the parameters right though. Is there an easier way? If not, I will probably create a CL interface that calls CRTRPGPGM with the default values I want and create a CRTRPGPGM pointing to my CL, which I know the subset parameters of. Regards, Jim Langston Programmer/Analyst Cels Enterprises, Inc. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.