Command Line Arguments

Placement of arguments

These arguments may be placed on the command line after the file name, or on the job control line (optional first line of the job), on the end of the line after the qualifier !ARGS

Use of arguments

Arguments are substituted into the command file wherever it has a $i string where i an integer indicating the position of the argument in the argument list.

More!

Example

The command line
 ASReml -r2w500 myjob alpha beta gamma
could be run as
 ASReml  myjob
if the first line of myjob.as reads
!RENAME 2 !WORKSPACE 500 !ARGS alpha beta gamma
and would run the job twice. The first run would produce output files myjobalpha_beta.* and would substitute alpha for $1, and beta for $2. The second run would produce output files myjobalpha_gamma.* and would substitute alpha for $1, and gamma for $2.

Return to start