The INC statement increases the value of a variable by one.
INC variable
Specifies the variable to which the value is assigned. This variable must begin with an alpha character.
If the value of the variable is 32,767, an error message will display.
%/LOG LOGFILE2 %/LET V=1 %/WHILE V <2 %SHOWJOB %/INC V %/ENDWHILE %/LOGRESET