SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 10972: An error occurs when you use the %INCLUDE statement with a fileref that begins with an underscore

DetailsHotfixAboutRate It

The %INCLUDE statement fails when you use a fileref that begins with an underscore and when the FILENAME statement contains an explicit pathname.

For example, the following %INCLUDE statement fails because of the explicit pathname 'userid.mylib.pds(member)':

   filename _TEST 'userid.mylib.pds(member)';
   %include _TEST;

This code results in the following error:

   ERROR: _TEST.
   ERROR: Cannot open %INCLUDE file _TEST.

This problem occurs only in instances where the FILENAME statement contains an explicit pathname; it does not occur if the path points to a to a partitioned data set (PDS) without the member or to a sequential file.

The following code works because the pathname ('userid.mylib.pds') does not include the explicit member-level name. The member level is moved to the %INCLUDE statement.

   filename _TEST 'userid.mylib.pds';
   %include _TEST(member);

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.