Example of an Input and Output Variables Scoring File

Here is an example of an input and output variables scoring file. The filename is sasscore_score_io.xml.
<?xml version="1.0" encoding="utf-8"?>
<Score>
   <Producer>
      <Name> SAS Enterprise Miner </Name>
      <Version> 1.0 </Version>
   </Producer>
   <TargetList>
   </TargetList>
   <Input>
      <Variable>
         <Name> COUNT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> DIF_SRVR </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[diff_srv_rate]]>
         </Description>
      </Variable>
      <Variable>
         <Name> FLAG </Name>
         <Type> character </Type>
      </Variable>
      <Variable>
         <Name> HOT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> SAM_SRAT </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[same_srv_rate]]>
         </Description>
      </Variable>
      <Variable>
         <Name> SERVICE </Name>
         <Type> character </Type>
      </Variable>
      <Variable>
         <Name> SRV_CNT </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[srv_count]]>
         </Description>
      </Variable>
   </Input>
   <Output>
      <Variable>
         <Name> AOV16_COUNT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> AOV16_DIF_SRVR </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> AOV16_HOT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> AOV16_SAM_SRAT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> AOV16_SRV_CNT </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> EM_CLASSIFICATION </Name>
         <Type> character </Type>
         <Description>
            <![CDATA[Prediction for ATTACK]]>
         </Description>
      </Variable>
      <Variable>
         <Name> EM_EVENTPROBABILITY </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Probability for level U2R of ATTACK]]>
         </Description>
      </Variable>
      <Variable>
         <Name> EM_PROBABILITY </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Probability of Classification]]>
         </Description>
      </Variable>
      <Variable>
         <Name> G_FLAG </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> G_SERVICE </Name>
         <Type> numeric </Type>
      </Variable>
      <Variable>
         <Name> I_ATTACK </Name>
         <Type> character </Type>
         <Description>
            <![CDATA[Into: ATTACK]]>
         </Description>
      </Variable>
      <Variable>
         <Name> P_ATTACKDOS </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Predicted: ATTACK=dos]]>
         </Description>
      </Variable>
      <Variable>
         <Name> P_ATTACKNORMAL </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Predicted: ATTACK=normal]]>
         </Description>
      </Variable>
      <Variable>
         <Name> P_ATTACKPROBE </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Predicted: ATTACK=probe]]>
         </Description>
      </Variable>
      <Variable>
         <Name> P_ATTACKR2L </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Predicted: ATTACK=r2l]]>
         </Description>
      </Variable>
      <Variable>
         <Name> P_ATTACKU2R </Name>
         <Type> numeric </Type>
         <Description>
            <![CDATA[Predicted: ATTACK=u2r]]>
         </Description>
      </Variable>
      <Variable>
         <Name> U_ATTACK </Name>
         <Type> character </Type>
         <Description>
            <![CDATA[Unnormalized Into: ATTACK]]>
         </Description>
      </Variable>
      <Variable>
         <Name> _WARN_ </Name>
         <Type> character </Type>
         <Description>
            <![CDATA[Warnings]]>
         </Description>
      </Variable>
   </Output>
   <C>
      <Function>
         <Name>
            score
         </Name>
         <ParameterList>
            <Parameter>
               <Array length="7">
                  <Type>
                     Parm
                  </Type>
                  <DataMap>
                     <Element index="0">
                        <Value>
                           <Origin> COUNT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="1">
                        <Value>
                           <Origin> DIF_SRVR </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="2">
                        <Value>
                           <Origin> FLAG </Origin>
                           <Array length="33">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                     <Element index="3">
                        <Value>
                           <Origin> HOT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="4">
                        <Value>
                           <Origin> SAM_SRAT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="5">
                        <Value>
                           <Origin> SERVICE </Origin>
                           <Array length="33">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                     <Element index="6">
                        <Value>
                           <Origin> SRV_CNT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                  </DataMap>
               </Array>
            </Parameter>
 
            <Parameter>
               <Array length="18">
                  <Type>
                     Parm
                  </Type>
                  <DataMap>
                     <Element index="0">
                        <Value>
                           <Origin> AOV16_COUNT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="1">
                        <Value>
                           <Origin> AOV16_DIF_SRVR </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="2">
                        <Value>
                           <Origin> AOV16_HOT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="3">
                        <Value>
                           <Origin> AOV16_SAM_SRAT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="4">
                        <Value>
                           <Origin> AOV16_SRV_CNT </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="5">
                        <Value>
                           <Origin> EM_CLASSIFICATION </Origin>
                           <Array length="33">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                     <Element index="6">
                        <Value>
                           <Origin> EM_EVENTPROBABILITY </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="7">
                        <Value>
                           <Origin> EM_PROBABILITY </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="8">
                        <Value>
                           <Origin> G_FLAG </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="9">
                        <Value>
                           <Origin> G_SERVICE </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="10">
                        <Value>
                           <Origin> I_ATTACK </Origin>
                           <Array length="7">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                     <Element index="11">
                        <Value>
                           <Origin> P_ATTACKDOS </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="12">
                        <Value>
                           <Origin> P_ATTACKNORMAL </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="13">
                        <Value>
                           <Origin> P_ATTACKPROBE </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="14">
                        <Value>
                           <Origin> P_ATTACKR2L </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="15">
                        <Value>
                           <Origin> P_ATTACKU2R </Origin>
                           <Type> double </Type>
                        </Value>
                     </Element>
                     <Element index="16">
                        <Value>
                           <Origin> U_ATTACK </Origin>
                           <Array length="7">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                     <Element index="17">
                        <Value>
                           <Origin> _WARN_ </Origin>
                           <Array length="5">
                             <Type> char </Type>
                          </Array>
                        </Value>
                     </Element>
                  </DataMap>
               </Array>
            </Parameter>
         </ParameterList>
      </Function>
   </C>
</Score>