step  To run a control charts analysis, from the menus choose:

Graphs
  Control...

step  Select p, np.

step  Select Cases are subgroups.

step  Click Define.

step  Select Number defective as the variable representing the number of nonconforming units.

step  Select Lot number as the variable that labels the subgroups.

step  Select Variable in the Sample Size group and select Number sampled as the variable containing the sample sizes.

step  Click OK.

These selections produce a p chart.