About CheckLog‎ > ‎Documentation‎ > ‎

Example Issues

The following are samples of issues that occur in the SAS log that may be difficult to replicate or discover.

Meaning of an Identifier After Quoted Text

/* Incorrect */
data _null_;
    format F LongName 8.;
    F=42;
    put "NOTE: The value of F is"F;
    put "NOTE: The value of LongName is"LongName;
run
;

/* Correct */
data _null_;
    format F LongName 8.;
    F=42;
    put "NOTE: The value of F is" F;
    put "NOTE: The value of LongName is" LongName;
run;

Merge with Repeats of BY Values

/* Test data set 1 */
data alfa;
    input id $ v1 8.;
    format id $10. v1 8.;
datalines;
A21 8
A25 24
A25 22
A25 76
;
run;

/* Test data set 2 */
data beta;
    input id $ v4 8.;
    format id $10. v4 8.;
datalines;
A21 55
A25 4
A25 91
A25 38
;
run;

/* Test merge with repeats of BY values */
data alfabeta;
    merge alfa(in=in1) beta(in=in2);
    by id;
    if in1 and in2;
run;

/* SQL version with different record count */
proc sql;
    create table alfabeta(drop=id1 id2) as
    select coalesce(id1, id2) as ID, *
    from alfa(rename=(id=id1)), beta(rename=(id=id2))
    where alfa.id1=beta.id2
    ;
quit;

Outside Axis Range

/* Example from Quentin */
data a;

    infile cards;
    input day score;
    format score percent.;
cards;

1 .8
2 .9
3 1.5

4 .9
5 .8
;

run;

axis1 order=(0 to 1 by .1);


symbol1 i=join v=none;

proc gplot data=a;
    plot score*day / vaxis=axis1;
run;
quit;