Hi!
I need help
to assign a value from one table to an outer one.
my trigger is the date,
if the date in dtP is equal or greater in one hour from dtC then need to assign the value from dtC:chart_value to the new column (PC_TA) in dtC
any help will be appreciated
tables columns

my code - not assign any values only Zeros and don't treat last line 
dtC = open ("....");
dtP = open ("....");
hr = 3600;
dtC << new column ( "PC_TA", numaric,continuous,format( "Best",8),);
for (i=1, i<Nrow(dtC), i++,
for (j=1, j<Nrow(dtP), j++,
if ( dtC:start_date[i] >= dtP:action_date[j] >= dtC:start_date[i] + hr,
dtC:PC_TA[i] = dtP:chart_value[j],
dtC:PC_TA[i] =0
);
);
);