0 votes
in Software Defined Networking by
Difference between Missover and Truncover

1 Answer

0 votes
by

Missover -When the MISSOVER option is used on the INFILE statement, the INPUT statement does not jump to the next line when reading a short line. Instead, MISSOVER setsvariables to missing.

Truncover - It assigns the raw data value to the variable even if the value is shorter than the length that is expected by the INPUT statement.

The following is an example of an external file that contains data:

1

22

333

4444

This DATA step uses the numeric informat 4. to read a single field in each record of raw data and to assign values to the variable ID.

data readin;

infile 'external-file' missover;

input ID4.;

run;

proc print data=readin;

run;

The output is shown below :

Obs    ID

 1          .

 2          .

 3          .

 4      4444

Truncover

data readin;

infile 'external-file' truncover;

input ID4.;

run;

proc print data=readin;

run;

The output is shown below :

Obs    ID

 1      1

 2      22

 3      333

 4      4444

...