@mohanj1 wrote:
Thanks.
I never used the power shell cmdlet. So coudl you please let me know how to use the power shell cmdlet.
Regards,
Mohan.
https://www.google.com/search?q=powershell+select-string
Also, just to make clear: when a SAS batch job is running, and writing to its log file, it has an exclusive lock on that file. So, a SAS job cannot read from the log file that it is creating. You have to read the log in a post-processing step, after the SAS job has finished. grep and powershell are good tools for this, and is what I've recommended. You could launch a 2nd SAS batch job to parse the log file from the first job, but IMO that is overkill, and not even the best tool for the application at hand.
"When the only tool in your toolbox is a hammer, everything looks like a nail".
I suggest you do a bit of self-study to improve your toolbox.
I'm unsubscribing from this one. Good luck, hope you get it working!
... View more