Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

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

$
0
0
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]

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>