Here's a pattern matching idea
dt = Open( "/Z:/data table_sample.jmp" );
// turn the column into a string
txt = Concat Items( dt:column1 << getvalues, "" );
Pat Match(
txt,
"PPP" + Pat Pos() >> pos + Pat Span( "1" ) >> run + "PPP" +
Pat Test(
Show( pos + 1, Length( run ) );
0; // this time the test fails to make it retry the match
)
);
pos + 1 = 30;
Length(run) = 26;
pos + 1 = 88;
Length(run) = 26;
Craige