Dear Experts, Suppose I have a dataset "A" like below with variable called fname. fname pgm1.sas pgm2.sas Now I need a Linux command to be executed for every observation to the above dataset and capture output in RESULT variable. Lets say, I want to search for a word TERADATA in the programs. so, need to execute grep command for every observation and capture its Linux output grep TERADATA pgm1.sas , grep TERADATA pgm2.sas and so on... So, my output dataset should look like : fname RESULT pgm1.sas libname TERADATA "/abc/def"; pgm2.sas libname TERADATA "/xyz/"; Please help. Thanks.
... View more