COMPOSER Command Examples

Example 1: Display LANSA Composer server version and environment information:

<pgmlib>/COMPOSER REQUEST(ABOUT)

     where <pgmlib> is the name of the program library for the LANSA system in which LANSA Composer is installed.  For example, if you installed LANSA Composer into the default location, you would type:

LICPGMLIB/COMPOSER REQUEST(ABOUT)

 If you typed the above command at a command line, LANSA Composer will display messages containing the LANSA Composer version and environment information.  For example::

LANSA Composer Server version 7.0 (Build 112 GA)

LANSA V14SP2                                   

IBM i server 7.2                               

Listener port: 07014                           

Web instance port: 07015                       

LANSA Integrator (JSM) port: 7016              

LANSA Integrator (JSM) admin port: 7017        

Example 2: Initiate applying a server license to the LANSA Composer server system:

<pgmlib>/COMPOSER REQUEST(LICENSE)

     where <pgmlib> is the name of the program library for the LANSA system in which LANSA Composer is installed.  For example, if you installed LANSA Composer into the default location, you would type:

LICPGMLIB/COMPOSER REQUEST(LICENSE)

Example 3: Run the supplied processing sequence TUT_01_P1 :

<pgmlib>/COMPOSER REQUEST(RUN)

pseq(TUT_01_P1)

parms( (YOURINITIALS 'FS')

(YOURMESSAGE  'Hello World')

(YOURNAME     'Fred Smith') )

Example 4: Run the supplied activity FTP_INBOUND using the EXAMPLE_FTPIN configuration :

<pgmlib>/COMPOSER REQUEST(RUN)

pseq(4B3DEDA9F50B4C53885BE5318F12DDCA)

parms( (FTPCONFIG 'EXAMPLE_FTPIN') )

Example 5: Export LANSA Composer definitions specified by the export list MY_EXPORT_LIST :

<pgmlib>/COMPOSER REQUEST(EXPORT)

exportlist(MY_EXPORT_LIST)

exportto('/LANSA_Composer_licpgmlib/lic/MY_EXPORT001.dxexport')

Example 6: Import the LANSA Composer definitions contained in the specified export file:

<pgmlib>/COMPOSER REQUEST(IMPORT)

importfrom('/LANSA_Composer_licpgmlib/lic/MY_EXPORT001.dxexport')