Yes, that was my assumption as well. However, we tried both single and double quotes around the option and it simply doesn't work. This is an example to show how we want to use it: data testing;
length frbron frdoel $8;
rcFB = filename( frbron , "&file." , 'recfm=n' );
rcFD = filename( frdoel , "&file._copy" , 'recfm=n' );
rcCP = fcopy( frbron , frdoel );
if rcCP not = 0 then do;
errmsg = sysmsg();
put "FCOPY fout --> " rcFB= rcFD= rcCP= errmsg=;
put "bron = " BronFile;
put "doel = " DoelFile;
end;
run; Without that third argument in the filename function, FCOPY does work but corrupts the file. With the third argument added (between quotes) we get the following error: ERROR: No logical assign for filename . But the option works perfectly on the filename statement. So we can use that as a work around, but we're very curious how you're supposed to do it with a filename function.
... View more