Can UNC filenames be used directly in EXTFH.CFG tags?

 
0 Likes

Problem:

Customer needs to set some file handler configuration options for a file which resides on a network server.
In the application the file appears in the select assign to clause as:

   select test-file assign to \\compname\filefolder\testfile.dat

How should this name be specifed within the extfh.cfg file in order for the name to be resolved correctly?

Resolution:

You can use a UNC name in an extfh.cfg file tag but you have to double the slashes in order for the file to be found.

Example: to set a tag for the following:  \\compname\filefolder\testfile.dat
You would use: [\\\\compname\\filefolder\\testfile.dat]

alternatively, if you set the basename=on option in the xfh-default tag then you can just specify the file name without the full path:

[XFH-DEFAULT]
BASENAME=ON
[testfile.dat]

Comment List
Related
Recommended