Desktop User Guides > Professional > Using UNICOM Intelligence Professional > Using UNICOM Intelligence Professional to develop interviews > Testing quotas > Accessing a quota from an interview script
 
Accessing a quota from an interview script
You access the quota from the routing section of your interview script (.mdd) file by using the Quota Object model. For example, the following mrScriptBasic code adds the current respondent to the relevant pending count in the quota group called “Gender”:
Dim quota_pend_result
Gender.Ask()
' Make sure that the UNICOM Intelligence Professional Debug Quotas menu option has been selected
If Not IsNullObject(QuotaEngine) Then
  ' Increment the pending count
  quota_pend_result = QuotaEngine.QuotaGroups["Gender"].Pend()
End If
The UNICOM Intelligence Developer Documentation Library contains several example interview script (.mdd) files that demonstrate the use of quotas. By default, these files are in this folder:
[INSTALL_FOLDER]\IBM\SPSS\DataCollection\<version>\DDL\Interview\Quotas
See also
Testing quotas