ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Help in Creating User Defined Commands

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help in Creating User Defined Commands

    for my project i have to create User defined command, i am able to careate a command but i am facing some issue in Specifying (Displaying) the text that is displayed to the right of the prompt line of each parameter on the prompt screen. It is working fine if i use the field length less than 13 but i could not get it right if i use the field length greater than or equal to 13. i do not know whether i have explained my issue correctly...

    for example

    My code looks like the folloiwng

    CMD PROMPT('Test Command')
    PARM KWD(TEXT) TYPE(*NAME) LEN(3) RSTD(*NO) +
    CHOICE('TEXT1 OR TEXT2') +
    PROMPT('TEXT')

    PARM KWD(TEST) TYPE(*CHAR) LEN(13) RSTD(*NO) +
    CHOICE('TEXT1 OR TEXT2') +
    PROMPT('FIELD LENGTH 13')

    the result looks like the folliwng

    TEXT . . . . . . . . . . . . . . TEXT1 OR TEXT2
    FIELD LENGTH 13 . . . . . . . .


    but i want to display TEXT1 OR TEXT2 for the second field also (Field length 13)

    i have tried all the possible ways whcih i know. i doubt there is some restriction to display this... would be great help if any one give me some suggetions


    thanks
    aravind

  • #2
    Re: Help in Creating User Defined Commands

    Did you ever solve this...I really havent used commands in a very long time and
    when I did I wasnt very good at them

    The only way I could get it to work is make the field lengths the same size (3)


    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Help in Creating User Defined Commands

      From IBM



      Possible Choices and Values

      The prompter will display possible choices for parameters to the right of the input field on the prompt displays. The text to be displayed can be created automatically, specified in the command definition source, or created dynamically by an exit program. Text describing possible choices can be defined for any PARM, ELEM, or QUAL statement, but because of limitations in the display format, the text is displayed only for values with a field length of 12 or less, 10 or less for all but the first qualifier in a group.
      Best of Luck
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: Help in Creating User Defined Commands

        Ur the man.......
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment

        Working...
        X