06-03-2016 12:03 PM
I am trying to extract the list of SAS program names from a dataset, i have hundreds of them and the special chars are present at
I am trying to get the output as
06-03-2016 12:43 PM
The SCAN function can help you with that, see example below.
data want; infile cards; input pgmname : $256. ; justPgm = scan(pgmname, -1, "/"); cards; /xxxx/abcde/abcdefgh.sas /xxxx/abcde/lkml/abcdefguh.sas
check the doc for more details.
Need further help from the community? Please ask a new question.