I understood what you were asking about. The script and instructions I posted would work except for one small issue. I assumed that your Year column was numeric. You had clearly pointed out that the Day column was character, and the Month column had to be character. But, you did not specify what the Year column was, so I assumed it was numeric. The code below will recreate the sample data table you displayed and then will create the new column with the m/d/y format used for the Target column
Names Default To Here( 1 );
// Recreate the Sample Data Table
New Table( "Sample",
Add Rows( 4 ),
New Column( "Year", Character, "Nominal", Set Values( {"2022", "2022", "2022", "2022"} ) ),
New Column( "Month", Character, "Nominal", Set Values( {"Jan", "Jan", "Jan", "Jan"} ) ),
New Column( "Day", Character, "Nominal", Set Values( {"1", "2", "3", "4"} ) )
);
// Create the Target column
dt = Current Data Table();
dt << New Column( "Target",
Format( "m/d/y" ),
formula(
theList = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov",
"Dec"};
Date MDY( Contains( theList, :month ), Num( :day ), Num( :year ) );
)
);
Jim