COMMAND – parameter title

0 pts.
Tags:
Application development
AS/400
CLP
What is the way to define parameters in a command so they will be indented and displayed under a title like: Inline Options:: . Inliner . . . . . . . . . . . *OFF *OFF, *ON . Mode . . . . . . . . . . . . . *NOAUTO *NOAUTO, *AUTO . Threshold . . . . . . . . . . 250 1-65535, *NOLIMIT . Limit . . . . . . . . . . . . 2000 1-65535, *NOLIMIT . Report . . . . . . . . . . . . *NO *NO, *YES please note that the 'Inline Options:' is on Separate line ! IBM use this technique in its System commands like CRT... but I never found documentation / sample as of how to do it. thanks
ASKED: February 23, 2006  9:52 AM
UPDATED: February 23, 2006  5:32 PM

Answer Wiki

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

Info about the crtcmd command is on page 122 of this link: http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/cl/Vol7commands.pdf

Discuss This Question: 1  Reply

 
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
  • Geneburns
    Try this. The source does not copy well onto the web page but if you copy it into a source file it will look better. The PARM sets up the header line and defines the label for the Elements that follow. The ELEM defines each of the element options in the list. CMD PROMPT('Inline Options:') PARM KWD(INLINER) TYPE(Q1) MIN(0) PROMPT('Inline + Options:') Q1: ELEM TYPE(*CHAR) LEN(4) RSTD(*YES) DFT(*OFF) + SPCVAL((*OFF) (*ON)) MIN(0) PROMPT('Inliner') ELEM TYPE(*CHAR) LEN(7) RSTD(*YES) DFT(*NOAUTO) + SPCVAL((*NOAUTO) (*AUTO)) PROMPT('Mode') ELEM TYPE(*INT4) DFT(250) RANGE(1 65535) + SPCVAL((*NOLIMIT 99999)) PROMPT('Threshold') ELEM TYPE(*INT4) DFT(2000) RANGE(1 65535) + SPCVAL((*NOLIMIT 99999)) PROMPT('Limit') ELEM TYPE(*CHAR) LEN(4) RSTD(*YES) DFT(*NO) + SPCVAL((*NO) (*YES)) PROMPT('Report')
    15 pointsBadges:
    report

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