Input SAS Data Sets for Examples

The following program creates two SAS data sets, SOUTHAMERICAN and EUROPEAN. Each data set contains the following variables:
Year
is the year in which South American and European countries competed in the World Cup Finals from 1954 to 1998.
Country
is the name of the competing country.
Score
is the final score of the game.
Result
is the result of the game. The value for winners is won; the value for losers is lost.
The PROC SORT statements in the example below sort the data sets in ascending order according to the BY variable. To create the interleaved data set in the next example, the data must be in ascending order.
data southamerican; title 'South American World Cup Finalists from 1954 to ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.