ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

command

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

  • command

    Hi

    Hw can i execute a CL command frm within in an RPGLE program.

    cheers

  • #2
    Re: command

    One technique:

    PHP Code:
    D Cmd             PR                  ExtPgm('QCMDEXC')
    D   command                    200A   const            
    D   length                      15P 5 const            

    ...

    c                   callp(e)  Cmd('DLTDTAQ <DTAQNAME>'200
    The Parm "200" refers to the length defined in the CMD Prototype for the command.

    Comment

    Working...
    X