Get the analysis code for a decision
post/flows/{decisionId}/analysisCode
Returns the analysis code that is used to generate the rule fired or path tracking reports based on the scoring definition.
1{2 "code": "loadActionSet \"simple\";\nloadActionSet \"ds2\";\n\naction simple.freq /\n casOut={name='add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path' caslib='Public' replace=TRUE}\n table={name='add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_output' caslib='Public' vars={{name='PathID'}} };\n\naction runDs2 / program = 'data\n\"Public\".\"add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path\"(overwrite=yes\nrename=( _charvar_=PathID _frequency_=Count) keep=(PathID Count));\n method run();\n set \"Public\".\"add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path\";\n end;\n enddata;';\n",3 "codeType": "application/json",4 "outputTableName": "add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path",5 "outputLibraryName": "Public",6 "version": 17}
Name | Type | Required | Description |
---|---|---|---|
decisionId | string | true | The identifier for the decision. Examples: "094078e7-278a-4719-a704-6e5e65af29ee" |
The information for scoreExecutionId and hints.
Request containing hints to generate Analysis Code using the Scoring Execution. This represents application/vnd.sas.dcm.score.analysis.code.generation.request media type (version 1).
Name | Type | Required | Description |
---|---|---|---|
scoreExecutionId | string | true | Score execution id. |
analysisType | string | true | Type of analysis that needs to be done. |
hints | object | false | Hints for generating analysis code. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Headers | Schema |