Previous Topic: Example 4: Extracting a List of Profiles with a Particular SessionNext Topic: Using Extract Files for Updating


Example 5: Extracting a List of Mail Locators

An administrator wants to extract all mail locators for a user ID TUSR05, which has been deleted. The administrator executes the following statement in a batch job:

EXTRACT GIVING(OLDLOC) MAILMESSAGE (MLOCTO(TUSR05))

This creates the extract file OLDLOC, which contains all mail locators for the recipient TUSR05. The variable MLOCTO specifies the recipient of a mail message.