What you can try is check where "debtor" is with the INDEW function, then pick the string beginning after that place with a SUBSTR function.
DATA test ;
INFILE CARDS MISSOVER DLM="," ;
INPUT Variable_1 :$50. ;
posDebtor = INDEXW(variable_1, "debtor") ;
afterDebtor = LEFT(SUBSTR(variable_1, posDebtor+LENGTH("debtor"))) ;
xxx debtor profile 7
x debtor profile 3 to 1
xx x x x x xx debtor profiles 133 to 155
xxxx debtor profile 3
Thanks, works perfect!! Right now, I don't fully understand the complete code (the statements INDEXW, SUBSTR), but the idea I fully understand. Most of the time, I've got the idea, but lacking the ability to 'convert' it into SAS codes... Right now, I'm going to check the statements. Thanks!!