In the VARYING phrase, you may extend the previous examples by adding up to four more AFTER phrases, for a total of six AFTER phrases.
This is an example that describes how to use the PERFORM statement to vary more than three identifiers.