I have an output for an SQLEXEC "C:\Users\Desktop\XYZ\MMMM.CSV" I need to store this output to a variable in peoplcode which should say &i="C:\Users\Desktop\XYZ". How can I do the substring to remove the file name from the output and get only the location. The location may vary from environment to environment.
Can someone please help me out. Thanks in advance.