In an SQR where if we want to check if a file exists on the server on an Oracle PeopleSoft intallation, one can use the function
#filexist = exists($Exact_FileName);
If it exists, then #filexist would be 0. But if I don't have the exact file name because the file on the server may have suffixes such as date time, then is there a way to find such files. For example I am looking for files beginning with "ABC" but the files on the server could be "ABC_123". Is there a SQR function for that?
Thank you.
Daniel
the Exists function only seems to be able to search for a file with the exact name including exact extension. It can't seem to be able to search for files with a starting string.
Using the idea from Bobby's comment, I put this together, which works on Windows, but can be modified to work in Linux if needed.