![]() | ![]() | ![]() | ![]() | ![]() |
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.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | z/OS | 9.1 TS1M3 SP4 | 9.2 TS1M0 |