This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##select file containing SAS input procedure | |
SASinput <- readLines(file.choose()) | |
##find the first INPUT line | |
firstline<-min(grep("INPUT @1",toupper(SASinput))) | |
##find the first semicolon ending that input line | |
a<-grep(";",toupper(SASinput)) | |
lastline<-min(a[a>firstline]) |
NewerOlder