ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to have a numeric with default text in CMD

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

  • How to have a numeric with default text in CMD

    Hi, I am creating a *CMD with a field similar to the FROMRCD field of CPYF command. It is an unsigned integer but the default value is *START. How will I create the same attribute to my field?
    what i tried which doesn’t work:
    PARM KWD(myfield) TYPE(*UINT4) SPCVAL((*START))

  • #2
    The special value must be converted to a valid value. In this example *START will be converted to 1 before being passed to the command processing program.

    SPCVAL((*START 1))

    Comment


    • #3
      Wow, that’s cool. Thanks for your help.

      Comment

      Working...
      X