Creating a CL Command using *SAME as a parameter

0 pts.
Tags:
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
ASKED: March 23, 2007  6:05 AM
UPDATED: March 23, 2007  7:05 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following