I am attempting to populate a new column ( :Prog_ ) with either "A" or "B" based upon the value of (:Assign Month). :Assign Month is a numeric, continuous, m/d/y variable.
The below script result in the :Prog_ column being populated but not with the values I am trying to populate the :Prog_ column with.
I'd like to populate the :Prog_ column rows with an "A" if :Assign Month <= "06/15/2016"
I'd like to populate the :Prog_ column rows with a "B" if :Assign Month is > 06/15/2016"
Here is the script I've tried to use (unsuccessfully) so far:
CT << New Column("Prog_", Character);
For each row(Prog_ = if( Char(Format(:Assign Month,"m/d/y")) <= "06/15/2016", "A", "B" ));
CT << New Column("Prog_", Character);
For each row(Prog_ = if( :Assign Month <= 06/15/2016, "A", "B" ));