ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

about User Definition of Command

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

  • about User Definition of Command

    Greeting everyone.
    Is there some Sample relate to User Definition of Command (Greated by "Crtcmd") ?


    thanks in advance/

  • #2
    Re: about User Definition of Command

    Heres what IBM SAYS


    Code:
                 CMD        PROMPT('List Fields')
    
                 PARM       KWD(FILE) TYPE(QUAL) MIN(1) PROMPT('File')
                 PARM       KWD(RCDFMT) TYPE(*NAME) DFT(*FIRST) +
                              SPCVAL((*FIRST)) PROMPT('Record format')
    
     QUAL:       QUAL       TYPE(*NAME) LEN(10)
                 QUAL       TYPE(*NAME) LEN(10) DFT(*LIBL) +
                              SPCVAL((*LIBL)) PROMPT('Library')
    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: about User Definition of Command

      Originally posted by jamief
      Heres what IBM SAYS


      Code:
                   CMD        PROMPT('List Fields')
      
                   PARM       KWD(FILE) TYPE(QUAL) MIN(1) PROMPT('File')
                   PARM       KWD(RCDFMT) TYPE(*NAME) DFT(*FIRST) +
                                SPCVAL((*FIRST)) PROMPT('Record format')
      
       QUAL:       QUAL       TYPE(*NAME) LEN(10)
                   QUAL       TYPE(*NAME) LEN(10) DFT(*LIBL) +
                                SPCVAL((*LIBL)) PROMPT('Library')
      thanks a lot

      Comment

      Working...
      X