17 2 The X_RUN Command

LANSA Technical

17.2 The X_RUN Command

The X_RUN command is used to execute an application from a command line or program icon. It initiates the LANSA execution environment and executes the specified application.

X_RUN has a number of compulsory and optional parameters which may vary depending on the platform on which it is used.

For example, this X_RUN command is used to bring up the menu MYPROC:

 X_RUN PROC=MYPROC PART=DEM LANG=ENG

             USER=USERID DBID=LX_LANSA

Under Linux, this X_RUN command is used to print a report on printer lp0 using the MYREPT report function IN MYPROC process:

 X_RUN PROC=MYPROC FUNC=MYREPT PART=DEM LANG=ENG

            USER=USERID DBID=LANSA PRTR=lp0

The X_RUN command can be found in

  • the x_lansa\execute directory under Windows
  • the $LANSAXROOT/x_lansa/bin directory under Linux.

The X_RUN command has standard parameters as well as parameters for more advanced use. These parameters are described in 17.3 X_RUN Parameter Summary and 17.4 X_RUN Parameter Details.

X_RUN parameters and their arguments can be set up permanently. How to do this is explained in 17.5 Permanently Specify X_RUN Parameters.

Designed for use by application developers, X_START is a simple utility that prompts for X_RUN parameters. Refer to 17.1 Using X_START as a Front End to X_RUN for details.