Hi, I am reading other people's code. But not understand one line of the code as the following. Can anybody help me out? Thanks! data trtdate;
merge trtsdt trtedt;
by usubjid;
maxdtc=maxsdtc max maxedtc;
TRTEDT=input(maxdtc, yymmdd10.);
TR01SDT=TRTSDT;
TR01EDT=TRTEDT;
format trtedt tr01sdt tr01edt yymmdd10.;
keep usubjid trtsdt trtedt tr01sdt tr01edt;
run; the line of code is highlighted. All maxdtc, maxsdtc and maxedtc are character variables. the purpose of this code is to find the maxdtc between maxsdtc and maxedtc. Just do not understand the logic of this assignment statement.
... View more