Append string in particular postion

i am having file with 9999 records and i have to insert string (SSR) for every 1000 records and after last record also (even though it will not satisfy 1000 records) Please help

now that we "think" we all know what you're after.... What have you tried and where exactly are you stuck?