Hi,
I have a script that splits text from one column to serval columns, deletes some, gives names, and changes data type.
the script includes the table name,
I want to use this script on other tables without changing table names for different files.
all the tables I use are in the same format except for table names.
// Text to columns
Data Table(
"TM1_CTW RPT+TPT x10.0_TU_Defualt_6050_01_Surface_TM1_CTW RPT+TPT x10.0_TU_Defualt_6293_04_Surface"
) << Text to Columns( columns( :File Name ), Delimiters( "_" ) );
// Delete columns
Data Table(
"TM1_CTW RPT+TPT x10.0_TU_Defualt_6050_01_Surface_TM1_CTW RPT+TPT x10.0_TU_Defualt_6293_04_Surface"
) << Delete Columns( :File Name 1, :File Name 2, :File Name 3, :File Name 4, :File Name 7 );
// Change column info: Scan
Data Table(
"TM1_CTW RPT+TPT x10.0_TU_Defualt_6050_01_Surface_TM1_CTW RPT+TPT x10.0_TU_Defualt_6293_04_Surface"
):File Name 5 << Data Type( Numeric ) << Set Name( "Scan" ) << Set Modeling Type( "Ordinal" ) <<
Set Field Width( 12 );
// Change column info: Wafer
Data Table(
"TM1_CTW RPT+TPT x10.0_TU_Defualt_6050_01_Surface_TM1_CTW RPT+TPT x10.0_TU_Defualt_6293_04_Surface"
):File Name 6 << Data Type( Numeric ) << Set Name( "Wafer" ) << Set Modeling Type( "Ordinal" ) <<
Set Field Width( 12 );