Min Sas. In order to calculate column wise minimum in sas we will be using min function in proc sql. One for each default statistic.
To calculate row wise maximum in sas we will be using max function in sas datastep. The min operator returns a missing value if either operand is missing. The default statistics of proc summary are n min max mean and std.
You seem to have confused the min aggregation syntax of sql with the min function syntax of sas.
In this case it returns the value of the operand that is lower in the sort order for missing values. To calculate row wise maximum in sas we will be using max function in sas datastep. The min function returns the minimum value of a matrix or set of matrices. You asked it to set first v2 to the minimum of two variables on the current observation and last v2 to the maximum of last date over the whole dataset.
