%1 is not legal in a BEFORE or AFTER clause of a WRITE statement.
30
Cause . . . . . : BEFORE or AFTER in a WRITE statement cannot be followed by %1.