What do you actually want to achieve from this? You can control various output parts of a program either in the code or in the options. If you need to find inputs/outputs and such like, then use proc scaproc which is a code analyzer, once the code is run with that running it provides a lot of information. As for how to create new lines, you can control where the output occurs with the output statement, e.g.:
if input_ds =: "NOTE: The data set" then do;
line=substr(input_ds,1,findw(input_ds,"has"));
output;
line=subsrt(input_ds,findw(input_ds,"has"));
output;
end;
Will output a row for text up to the word has. Then output another row for all text after the word has.
... View more