11.07.2015 Views

Download pdf guide - VSN International

Download pdf guide - VSN International

Download pdf guide - VSN International

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12 Command file: Running the job 18512.4 Advanced processing argumentsStandard use of argumentsCommand line arguments are intended to facilitate the running of a sequence ofjobs that require small changes to the command file between runs. The outputfile name is modified by the use of this feature if the -R option is specified. Thisuse is demonstrated in the Coopworth example of Section 15.10, see page 297.Command line arguments are strings listed on the command line after basename,the command file name, or specified on the top job control line after the !ARGSqualifier. These strings are inserted into the command file at run time. Whenthe input routine finds a $n in the command file it substitutes the nth argument(string). n may take the values 1. . .9 to indicate up to 9 strings after the commandfile name. If the argument has 1 character, a trailing blank is attached to thecharacter and inserted into the command file. If no argument exists, a zero isinserted. For example,asreml rat.as alpha betatells ASReml to process the job in rat.as as if it read alpha wherever $1 appearsin the command file, beta wherever $2 appears and 0 wherever $3 appears.Table 12.2: The use of arguments in ASRemlin command file on command line becomes in ASReml runabc$1def no argument abc0 defabc$1def with argument X abcX defabc$1def with argument XY abcXYdefabc$1def with argument XYZ abcXYZdefabc$1 def with argument XX abcXX defabc$1 def with argument XXX abcXXX defabc$1 def(multiple spaces)with argument XXXabcXXX def

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!