Type : CREATION_INTERNE
Los ejemplos usan datos generados (datalines) o SASHELP. Los conjuntos de datos 'animal' y 'plantG' se crean internamente para la ilustración.
| 1 | DATA animal; |
| 2 | INPUT common $ animal $; |
| 3 | DATALINES; |
| 4 | a Ant |
| 5 | b Bird |
| 6 | c Cat |
| 7 | d Dog |
| 8 | e Eagle |
| 9 | f Frog |
| 10 | ; |
| 11 | RUN; |
| 12 | |
| 13 | DATA plantG; |
| 14 | INPUT common $ plant $; |
| 15 | DATALINES; |
| 16 | a Apple |
| 17 | b Banana |
| 18 | c Coconut |
| 19 | d Dewberry |
| 20 | e Eggplant |
| 21 | g Fig |
| 22 | ; |
| 23 | RUN; |
| 24 | |
| 25 | DATA combine; |
| 26 | SET animal; |
| 27 | SET plantG; |
| 28 | RUN; |
| 29 | |
| 30 | PROC PRINT DATA=combine; RUN; |