IAT - problem scoring D-measure with IAT SPSS script

IAT - problem scoring D-measure with IAT SPSS script

I am using Inquisit's IAT SPSS script, IAT.sps, to score IAT data that I have collected through Inquisit 4 Web. Using the syntax, I successfully created all the variables for the outfile CRITERIA.sav, with complete data for each variable, including the variable TEST. However, for the syntax that is supposed to create variables for the outfile BIEP.ALL_MEANS&SDs.SAV, I am ending up with a lot of missing data in these variables, particularly for all commands associated with TEST=2 (below). There is so much missing data in the variables created by the IF(TEST=2) commands below, that there is no data for TEST=2 in the variables D_asis_num and D_asis_denom, and thus the variable D_BIEP_b is empty, with no values. In other words, there is complete data for the variable D_biep_a (D-score for 1st blocks) and all null data for the variable D_biep_b (D-score for the 2nd blocks). I am trying to understand why this is happening and what this means.

Any help would be appreciated-- thanks so much.

*The variables M1 and M2 below (created in steps prior) each have more missing data if TEST=2 than if TEST=1.

Thank you for your reply. If you could answer a couple of follow-up questions, that would be great:

(1) In looking closer at the IAT.sps syntax, I noticed that the value labels for blocknum assume that the numeric value of the blocks in my IAT is 9, but there are only 7 blocks in my IAT, which are labeled 1-7. Thus, even though blocknum has a value label of 9, there are no data points in that variable that are larger than 7. This must have resulted in inaccurate calculations for the subsequent syntax to create the variables PAIRING and TEST, because there are no cases for which blocknum=9. If I just re-number the numeric values for the blocknum value label, will this solve the problem? (I.e. number 1-7 instead of 1-9?)

(2) Regarding your point that the syntax for Grouping might differ depending on how groups are assigned in my Inquisit script: Below is the part of the script where it looks like participants were assigned to the different orders of stimulus presentation. It looks like the name of the variable is "subjects," but I don't see a variable called subjects in my Inquisit .dat file. There is a variable called "subject," but that is the unique 5-digit participant ID# associated with each participant, not a grouping variable. In my Inquisit .dat file, I double-checked the order of presentation of the blocks for several participants, and it looks like the randomization was successful-- some participants were assigned to see Pairing2_test in block #7 and some to see Pairing1_test in block #7. I am still confused about how I create syntax to capture the grouping variable for order of presentation. Thank you for your help.