Thanks every one for all your inputs ,
from this i could able to analyse that the input file am reading is more than 32767 , so the lines having the text (next) are truncated .
Here is solution , where am reading the input file morethan 32767 untill end of the file and searching for the string 'next' using find and finally extracting the text in href which are enclosed in doublequotes.
data Test_dataset; infile " /out_test.txt" lrecl=32767 recfm=f truncover; input @1 myline $CHAR32767.; put "the value of _infile_ is:" _infile_ ; test1=find( _infile_,'next'); text=scan(substr(_infile_, find( _infile_,'next')+11),1,""""); put 'this is to test value ' text; run;
... View more