Category Focus

DATA Step

Back to main article

Examples: Processing BY groups with FIRST. and LAST. variables in the DATA step

This documentation provides examples of using the automatic FIRST. and LAST. variables in a SAS DATA step to process data by groups (BY groups). These examples show how these variables signal the beginning and end of each group, and how their valu...

Codes in same category

KEEP Statement

Specifies which variables to include in output SAS data sets.

Execute DATA Step in Multi-threads (CAS)

This example demonstrates how to execute a DATA step in multi-threaded mode w...

Create a DATA Step View

This document explains how to create and use a DATA Step view in SAS Viya 4, ...

Create a VARCHAR variable with the LENGTH statement

This document explains how to define a VARCHAR type variable using the LENGTH...

Related Documentation

Aucune documentation.
Need help?

Consultez notre Knowledge Hub pour plus de ressources.

Go to Hub