The pgm variable is used to deal with the X chromosome, as in a cross (BxD)x(BxD) with females listed first, the female F2s will have genotypes BB or BD on the X, while in the cross (DxB)x(DxB) the female F2s will have genotype BD or DD.
pgm stands for "paternal grandmother". Use 0 for the F2s whose paternal grandmother is B and 1 for the F2s whose paternal grandmother is D.
The parentals and F1s shouldn't be included in the data used for QTL analysis, just the F2s.
karl