ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How do I run a C program I wrote from a script in the Qsh environment?

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

  • How do I run a C program I wrote from a script in the Qsh environment?

    I wrote a pretty simple C program. I was able to compile it on the iSeries.

    I want to run it from within a script I wrote that is saved on the IFS and will be called via Qsh from a job running on the iSeries?

    Anyone tried anything like this? Or did it need to be compiled differently, ie not as a program on the iSeries?


  • #2
    You can run programs (i.e. object type is *PGM) in Qshell. Put the program name in stream-file format. So, to run program MYPGM in library MYLIB, use this command:

    Code:
    /QSYS.LIB/MYLIB.LIB/MYPGM.PGM

    Comment


    • #3
      Thanks much. That worked.

      Comment

      Working...
      X