0 pts.
 Creating a CL Command using *SAME as a parameter
CLP
Hi, I'm currently creating a *PGM and *CMD to allow local IT sites to update a few options on a CHGUSRPRF but have hit an issue with the OUTQ parameter. The CMD screen will show *SAME for all of the parameters as below. User Profile . . . . . . . . . . > USRPRF Message Queue Delivery . . . . . *SAME Output Queue . . . . . . . . . . *SAME Output Queue Library . . . . . . Printer Device . . . . . . . . . *SAME Text . . . . . . . . . . . . . . *SAME Locale . . . . . . . . . . . . . *SAME The issue I have is the command does not accept a default value of *SAME and throws up the below error. Value '*SAME ' for parameter OUTQ not a valid name. I know that it's complaining because the character value begins with an asterix (*). Does anybody have any ideas of how to get around this issue? Any suggestions would be greatly accepted....Thanks

Software/Hardware used:
ASKED: March 23, 2007  6:05 AM
UPDATED: March 23, 2007  7:05 AM

Answer Wiki:
You need to use SPCVAL on the definition of the parameter in the command definition. This is from a command to retrieve DDS for a file to a specific source member: PARM KWD(SRCMBR) TYPE(*NAME) LEN(10) DFT(*FILE) + SPCVAL((*FILE)) PROMPT('Source Member') You would want to change *FILE to *SAME but the principle is the same. The CPP looks for the value *FILE and substitutes it for whatever was specified in parameter FILE.
Last Wiki Answer Submitted:  March 23, 2007  7:05 am  by  Alasdair727   0 pts.
All Answer Wiki Contributors:  Alasdair727   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _