I wasn't sure which forum this belongs on. This seems about as close as anything to fitting the description.
I have created a DUPSPLF command that we need on our system (yes, I know DUPSPLF is available in TAATOOLS but my employer doesn't want to purchase it) but I have a little dilemma. The first parameter of my DUPSPLF command is JOBNAME (qualified). I want to specify *CURRENT as the default. the 2nd parameter is spool file name (SPLF) which I want to be a required parameter. The problem is if I want SPLF to be a required parameter, I have to specify MIN(1) (or MIN > 0). Since I have specified a default for the 1st parameter, JOBNAME, it won't let me specify a value > 0 for MIN for JOBNAME and I get a warning saying that a required parameter (SPLF) is not allowed after an optional parameter (JOBNAME) and it makes SPLF an optional requirement instead of a required one, ignoring the MIN(1) option.
So, how can I make SPLF (and also the 3rd parameter SPLNMBR) required and still specify a default value for the 1st parameter JOBNAME
I have created a DUPSPLF command that we need on our system (yes, I know DUPSPLF is available in TAATOOLS but my employer doesn't want to purchase it) but I have a little dilemma. The first parameter of my DUPSPLF command is JOBNAME (qualified). I want to specify *CURRENT as the default. the 2nd parameter is spool file name (SPLF) which I want to be a required parameter. The problem is if I want SPLF to be a required parameter, I have to specify MIN(1) (or MIN > 0). Since I have specified a default for the 1st parameter, JOBNAME, it won't let me specify a value > 0 for MIN for JOBNAME and I get a warning saying that a required parameter (SPLF) is not allowed after an optional parameter (JOBNAME) and it makes SPLF an optional requirement instead of a required one, ignoring the MIN(1) option.
So, how can I make SPLF (and also the 3rd parameter SPLNMBR) required and still specify a default value for the 1st parameter JOBNAME
Comment