ILE C/C++ Compiler Reference


Chapter 6. Using ixlclink to Create Programs

The ixlclink command lets you invoke the OS/400 Create Program (CRTPGM) and Create Service Program (CRTSRVPGM) commands from a personal computer workstation. Command parameters are passed by ixlclink to the OS/400 CRTPGM or CRTSRVPGM programs, which in turn bind modules residing on an iSeries system into an ILE program or service program.

You must install the CODE component of IBM WebSphere Development Studio Client for iSeries if you want to use the ixlclink command from the command line of a Windows client.

Examples of ixlclink Usage

  1. The following ixlclink command invokes the OS/400 CRTPGM command to create a program.
    c:\>ixlclink -qpgm=usr/simple -qgen -qnodupproc -qmodule=usr/simplec
    "-qtext='simple c program' "

    It is equivalent to issuing the following CL command:
    CRTPGM PGM(usr/simple) module(usr/simplec) text('simple c program' )
    option( *gen *nodupproc)

  2. The following ixlclink command invokes the OS/400 CRTSRVPGM command to create a service program.
    c:\>ixlclink -qsrvpgm=usr/simple "-qbnddir=temp/a temp/c" -qgen
    -qnodupproc -qmodule=usr/simplec "-qtext='simple service program' "

    is equivalent to issuing the following CL command:
    CRTSRVPGM SRVPGM(usr/simple) bnddir(temp/a temp/b) module(usr/simplec)
    text('simple service program' ) option( *gen *nodupproc)

  3. If the command line parameter includes one or more spaces, you need to use " " to enclose the parameter. For example:
    "-qbnddir=temp/a  temp/b"
    

    is seen by CL as:

    bnddir(temp/a temp/b)
    
  4. If you want to use * as part of a string, you need to use ' ' to enclose the string. For example:
    -qtext='*blank'
    

    is seen by CL as:

    -qtext=*blank
    
  5. If there is space in a string associated with a command line parameter, you need to use ' ' to quote the string and " " to quote the command line. For example:
    "-qtext='simple c'"
    

    is seen by CL as:

    text('simple c')
    

For more information on creating programs or service programs, see Creating a Program and Creating a Service Program in WebSphere Development Studio: ILE C/C++ Programmer's Guide, SC09-2712-05.


[ Top of Page | Previous Page | Next Page | Table of Contents ]