Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 11 Dec 2013 @ 23:10:58 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Macro with In List parm
From:   Dieter Noeth

Hi Michelle,

you can't pass multiple values in an easy way, but when you're on TD14 it's a simple

     AND Customer_C_alias_CCN.Customer_Nb IN
           SELECT CAST(token AS INT)
           FROM TABLE (STRTOK_SPLIT_TO_TABLE(1, :Customer_Nb, ',')
                RETURNS (outkey INTEGER,
                         tokennum INTEGER,
                         token VARCHAR(20) CHARACTER SET UNICODE)
                      ) AS tf

     exec prodmd.customer_forms('7900201,8705356,1304132')


  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023