DIFF Function (CREATE command)

DIFF produces new series based on nonseasonal differences of existing series.

Example

CREATE ADIF2 = DIFF(VARA,2) /
       YDIF1 ZDIF1 = DIFF(VARY VARZ,1).