Problem Note 10972: An error occurs when you use the %INCLUDE statement with a fileref that begins with an underscore
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
SAS System | Base SAS | z/OS | 9.1 TS1M3 SP4 | 9.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.
The %INCLUDE statement fails when you use a fileref that begins with an underscore and when the FILENAME statement contains an explicit pathname.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2008-04-04 09:55:33 |
Date Created: | 2003-10-02 11:38:00 |