You can write a custom plot routine using the repeat function and pass the variable from AMWF to responde to the number of repeats. In the following sequence, I have a internal function called plotnum which sets the variable numplot via a dialog-box using doslib. The variable numplot is used to set the number of times to repeat. ((= plt1 "1") (laymod) (pltnum) (repeat numplt (command "-plot" "y" "model" "hp4v.pc3" "ANSI A (8.50 x 11.00 Inches)" "inches" "landscape" "y" "limits" "fit" "center" "yes" "Wvco 11X17.ctb" "y" "n" "n" "n" "y")))............plt1 is a variable to select printer,page size, and ctb. (laymod) sets/checks which layout it is in (different sequence of responses for ps and ms).