next up previous 63
Next: Tasks with Parameters
Up: Writing ADAM tasks
Previous: Introduction


Compiling and Linking

Before compiling and linking ADAM tasks we need to run the command ADAM_DEV which sets up appropriate definitions. This in turn requires that the command ADAMSTART has been run.

    $ ADAMSTART
    $ ADAM_DEV

The task can then be compiled and linked using the following commands:

    $ FOR MYTASK
    $ ALINK MYTASK

To run the task start up ICL and define a command to run the task using the ICL DEFINE command.

    ICL> DEFINE  TEST  MYTASK
    ICL> TEST
    Loading MYTASK into 03BCMYTASK
    Hello
    ICL> TEST
    Hello
    ICL>
The DEFINE command defines the command TEST to run the A-task MYTASK. For this to work, MYTASK has to be in the default directory. If it were somewhere else a directory specification could be included on MYTASK in the DEFINE command.

TEST then causes the task to be loaded and executed. Typing TEST again causes it to be executed a second time, but this time it doesn't have to be loaded.


next up previous 63
Next: Tasks with Parameters
Up: Writing ADAM tasks
Previous: Introduction

ICL The Interactive Command Language for ADAM
Starlink Guide 5
J A Bailey
A J Chipperfield

9th June 1998
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council