SAS data sets that are created with the EXTENDOBSCOUNTER=YES option contain the ExtendObsCounter file attribute that can be viewed under the Engine/Host Dependent Information in the output listing of the CONTENTS procedure. If the SAS data set is not created with the EXTENDOBSCOUNTER=YES option, the ExtendObsCounter field is not listed in the CONTENTS procedure output.
The sample code on the Full Code tab shows how to create a SAS data set with the EXTENDOBSCOUNTER=YES option. It also shows how to extract the ExtendObsCounter file attribute using the SAS Output Delivery System (ODS). This sample uses the ODS OUTPUT statement and specifies the output object, ENGINEHOST, which is created by PROC CONTENTS.
To see all of the output objects created by the CONTENTS procedure, place an ODS TRACE ON statement before the CONTENTS procedure, and place an ODS TRACE OFF statement immediately after the CONTENTS procedure.
For further information about the EXTENDOBSCOUNTER= option, see the following page in the SAS® 9.4 Language Reference: Concepts:
Extending the Observation Count for a 32-Bit SAS Data File
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
/* Sample data set created with the EXTENDOBSCOUNTER=YES option */
data sample(extendobscounter=yes);
x=1;
run;
/* ODS OUTPUT statement to direct the Engine/Host information to a data set */
ods output enginehost=attr_dataset;
/* Close the Listing destination to direct output to the ENGINEHOST */
/* output object and run PROC CONTENTS on the sample data set */
ods listing close;
proc contents data=sample;
run;
/* Reopen the Listing destination */
ods listing;
/* Create a subset data set to keep only the ExtendObsCounter information */
/* and run PROC PRINT to view the data set */
data eoc;
set attr_dataset(where=(label1="ExtendObsCounter"));
drop nvalue1;
run;
proc print data=eoc;
run;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Topic: | SAS Reference ==> System Options SAS Reference ==> Statements ==> Data Access ==> LIBNAME SAS Reference ==> Data Set Options ==> Data Set Options |
Date Modified: | 2013-11-18 10:28:57 |
Date Created: | 2013-11-14 10:27:09 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | Base SAS | Solaris for x64 | 9.4 TS1M0 | |
Linux for x64 | 9.4 TS1M0 | |||
HP-UX IPF | 9.4 TS1M0 | |||
64-bit Enabled Solaris | 9.4 TS1M0 | |||
64-bit Enabled HP-UX | 9.4 TS1M0 | |||
64-bit Enabled AIX | 9.4 TS1M0 | |||
Windows 7 Professional x64 | 9.4 TS1M0 | |||
Windows 7 Enterprise x64 | 9.4 TS1M0 | |||
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | |||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | |||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | |||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | |||
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | |||
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | |||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | |||
Microsoft Windows 8.1 Pro | 9.4 TS1M0 | |||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | |||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | |||
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | |||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M0 | |||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | |||
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M0 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M0 | |||
Microsoft® Windows® for x64 | 9.4 TS1M0 | |||
Z64 | 9.4 TS1M0 | |||
z/OS | 9.4 TS1M0 |