The date of the last encounter is needed for various types of analyses (e.g., survival analysis). The text below describes how to create a dataset with a variable containing the last encounter date for each subject.
Now that the Output Interval has been set up, create a data set and on the Attributes tab select the "Output Interval Group". Then, click the "Variable Finder" tab and select "Encounter System Variables", then select "Encounter Date" variable. The data set now has the date of the last encounter included. For more details watch the "Data Analysis" tutorials here.