Developer Documentation Library > Data Model > Available DSCs > Quantum DSC > Reading from a Quantum file > Creating a questionnaire definition file > Creating the basic metadata document (stage 1)
 
Creating the basic metadata document (stage 1)
1 Create a new .mdd file in UNICOM Intelligence Professional. To do this, start UNICOM Intelligence Professional and from the File menu, choose New and then File. Then select Metadata File from the list of available file types, and click Open.
2 Amend the text of the Metadata section so that the parameter setting SystemVariables = False is added to the end of the list of parameters. The Metadata section should then look similar to this example:
Metadata(en-GB, Question, label, SystemVariables = false)
End Metadata
3 In the Metadata section, add one question for each variable on the Quantum file. Include a question of type long for the serial number but do not include a question for the card number. Make sure that the question type, such as long, text, or categorical, is equivalent to the data type of the Quantum variable. For numeric questions, you must specify the minimum and maximum values that the Quantum variable can store. For text questions, you must specify the length of the Quantum variable. For categorical questions, make sure that you define the correct number of categories for each question.
This is an example of a Metadata section after some questions have been added:
Metadata(en-GB, Question, label, SystemVariables = false)
Serial long [ 1 .. 9999 ];
Age long [ 0 .. 99 ];
Name text [ 40 ];
Gender categorical { Male, Female };
Items long [ 1 .. 99 ];
Opinion categorical { Good, Average, Poor };
Comment text [ 50 ];
End Metadata
The name of each question or category is not significant, but should be meaningful. The order of the questions in the Metadata section, and the order of categories within a categorical question is also not significant. However, you might find stage 2 easier to carry out if you match the order of variables and elements in your Quantum file.
4 Save and close the .mdd file.
Next
Adding Card, Column and Punch information (stage 2)
See also
Creating a questionnaire definition file