Command Line Arguments

What are they?

Command Line arguments are text strings supplied at run time which are substituted into the text of the job. Arguments are substituted into the command file wherever it has a $i string where i an integer indicating which argument to insert.

How specified

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

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 myjobalphabta.* and would substitute alpha for $1, and beta for $2. The second run would produce output files myjobalphagmma.* and would substitute alpha for $1, and gamma for $2.

Return to start