11.07.2015 Views

Download pdf guide - VSN International

Download pdf guide - VSN International

Download pdf guide - VSN International

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 Command file: Reading the data 62Qualifiers relating to data input and outputqualifieractionNewNew!READ n!RECODE!RREC [n]!RSKIP n [s]For example, assuming the field definitions define 10 fields,PRIMARY.DAT !skip 1!MERGE 6 SECOND.DAT !SKIP 1 !MATCH 1 6would obtain the first five fields from PRIMARY.DAT andthe next five from SECOND.DAT, checking that the first fieldin each file has the same value.Thus each input record is obtained by combining informationfrom each file, before any transformations are performed.formally instructs ASReml to read n data fields from the datafile. It is needed when there are extra columns in the data filethat must be read but are only required for combination intoearlier fields in transformations, or when ASReml attempts toread more fields than it needs to.is required when reading a binary data file with pedigree identifiersthat have not been recoded according to the pedigreefile. It is not needed when the file was formed using the !SAVEoption but will be needed if formed in some other way (seeSection 4.2).causes ASReml to read n records or to read up to a datareading error if n is omitted, and then process the records ithas. This allows data to be extracted from a file which containstrailing non-data records (for example extracting thepredicted values from a .pvs file). The argument (n) specifiesthe number of data records to be read. If not supplied,ASReml reads until a data reading error occurs, and then processesthe data it has. Without this qualifier, ASReml abortsthe job when it encounters a data error. See !RSKIP.allows ASReml to skip lines at the heading of a file down to(and including) the nth instance of string s. For example, toread back the third set predicted values in a .pvs file, youwould specify!RREC !RSKIP 4 ’ Ecode’since the line containing the 4th instance of ’ Ecode’ immediatelyprecedes the predicted values. The !RREC qualifiermeans that ASReml will read until the end of the predict table.The keyword Ecode which occurs once at the beginningand then immediately before each block of data in the .pvsfile is used to count the sections.

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

Saved successfully!

Ooh no, something went wrong!