Using the example below is it possible to check the file / path exists and/or is available.
1) In order to produce an invoice I "import" a company logo to produce a pdf that gets printed.
2) the company logo is stored in the following location //192.168.123.456/Shared/Data/CompanyLogo.jpg
However if the path or filename doesn't exist then the program seems to hang for 1 minute or 2 before carrying on.
So my question is - is there a Cobol way to check the file or path exists first, which is hopefully quicker, before I try and attach it?