Type : CREATION_INTERNE
Les données sont générées et traitées directement dans le script. La chaîne de caractères 'Samual Adams' est codée en dur pour l'analyse. Aucune lecture de source de données externe n'est effectuée.
| 1 | %dqload(); |
| 1 | DATA analysis; |
| 2 | LENGTH identities RESULT $ 300; |
| 3 | LENGTH email individ ssn 8; |
| 4 | |
| 5 | /* Run the dqIdentifyInfoGet function. The required argument specified is */ |
| 6 | /* identification-analysis-definition. The optional argument specified is */ |
| 7 | /* locale ('ENUSA'). */ |
| 8 | identities = dqIdentifyInfoGet('Field Content','ENUSA'); |
| 9 | put 'The identities for Field Content are: ' identities; |
| 10 | |
| 11 | |
| 12 | /* Run the dqIdentifyMulti function. The required arguments are character */ |
| 13 | /* value ('Samual Adams') and identification-analysis-definition */ |
| 14 | /* Field Content'). */ |
| 15 | RESULT = dqIdentifyMulti('Samual Adams', 'Field Content'); |
| 16 | put 'The result of the dqIdentifyMulti is: ' RESULT; |
| 17 | |
| 18 | /* Run the dqIdentifyIdGet function to return an individual score for an */ |
| 19 | /* identity from a delimited string of identification analysis score. */ |
| 20 | /* The required arguments are delimited-string (result), identity-name */ |
| 21 | /* ('INDIVIDUAL') for example and identification-analysis-definition */ |
| 22 | /* (Field Content'). The optional argument locale is not specified. The */ |
| 23 | /* default locale is used. */ |
| 24 | put 'The Identification Analysis identified the following identities:'; |
| 25 | |
| 26 | email = dqIdentifyIdGet(RESULT, 'E-MAIL', 'Field Content'); |
| 27 | put email=; |
| 28 | individ = dqIdentifyIdGet(RESULT, 'INDIVIDUAL', 'Field Content'); |
| 29 | put individ=; |
| 30 | ssn = dqIdentifyIdGet(RESULT, 'SOCIAL SECURITY NUMBER', 'Field Content'); |
| 31 | put ssn=; |
| 32 | RUN; |