DATA Step Statements: PUT Statement

Week 9[20, 22 Oct.] Class Activities
C:\Documents and Settings\John Bailer\My
Documents\baileraj\Classes\Fall 2003\sta402\handouts\week920oct03.doc
WRITING EXTERNAL FILES
* Statements: FILE, PUT
* Using DATA _NULL_
* PUT function
* Creating customized reports using DATA steps
TRANSPORTING SAS DATA SETS AND CATALOGS BETWEEN SYSTEMS
* PROC CPORT
* PROC CIMPORT
References:
Excerpts from SAS Online Documentation and system help.
DATA _NULL_
* can use a DATA step to generate a report without creating a data set by using _NULL_ in the
DATA statement.
* saves system resources because SAS does not create a data set.
FILE and PUT statements
DATA Step Statements: Syntax
FILE
FILE file-specification < options> < host-options>;
DATA Step Statements: FILE Statement - Options
You can use the following options with the FILE statement:
BLKSIZE COLUMN DELIMITER DROPOVER DSD FILENAME FILEVAR
FLOWOVER FOOTNOTES | NOFOOTNOTES HEADER LINE LINESIZE
LINESLEFT LRECL MOD N NBYTE ODS OLD PAD | NOPAD
PAGESIZE PRINT | NOPRINT RECFM STOPOVER
TITLES | NOTITLES _FILE_
FILE – specify current output file for PUT statements
FILE file-specification<ENCODING=encoding-value><option-list> <host-option-list>;
file-specification
can be any of the file specification forms discussed in "Referencing External Files" in the
"Using External Files" section in SAS Companion for the Microsoft Windows
Environment.
Note: The words CON, NUL, PRN, LPT1 - LPT9, and COM1 - COM9 are reserved
words under Windows. Do not use them as file names.
The FILE statement routes the output from the PUT statement to either the same external file to
which procedure output is written or to a different external file.
DATA Step Statements: PUT Statement
specification
Specifies what is written, how it is written, and where it is written. This can include:
variable
names the variable whose value is written.
(variable-list)
specifies a list of variables whose values are written.
'character string' specifies a string of text, enclosed in quotation marks, to write.
n*
specifies to repeat n times the subsequent character string
pointer control
moves the output pointer to a specified line or column in the output buffer.
columnspecifications
specifies to which columns of the output line the values are written.
format.
specifies a format to use when the variable values are written.
( format-list)
specifies a list of formats to use when the values of the preceding list of
variables are written.
_INFILE_
writes the last data record that is read either from the current input file or from
the data lines that follow a DATALINES statement.
_ALL_
writes the values of all variables, including automatic variables, defined in the
current DATA step, using named output.
@ | @@
holds an output line for the execution of the next PUT statement even across
iterations of the DATA step. These line-hold specifiers are called trailing @
and double trailing @.
libname class 'D:\baileraj\Classes\Fall 2003\sta402\data’;
data _null_; set class.nitrofen;
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put.lst';
put 15*’----‘;
put _all_;
/* useful to check values during input
*/
run;
*** insert file ***
-----------------------------------------------------------animal=1 conc=0 brood1=3 brood2=14 brood3=10 total=27 cbrood3=some _ERROR_=0
_N_=1
-----------------------------------------------------------animal=2 conc=0 brood1=5 brood2=12 brood3=15 total=32 cbrood3=some _ERROR_=0
_N_=2
-----------------------------------------------------------animal=3 conc=0 brood1=6 brood2=11 brood3=17 total=34 cbrood3=some _ERROR_=0
_N_=3
. . .
-----------------------------------------------------------animal=44 conc=310 brood1=0 brood2=0 brood3=0 total=0 cbrood3=none _ERROR_=0
_N_=44
-----------------------------------------------------------animal=45 conc=310 brood1=5 brood2=10 brood3=0 total=15 cbrood3=none
_ERROR_=0 _N_=45
-----------------------------------------------------------animal=46 conc=310 brood1=5 brood2=0 brood3=0 total=5 cbrood3=none _ERROR_=0
_N_=46
-----------------------------------------------------------animal=47 conc=310 brood1=6 brood2=0 brood3=0 total=6 cbrood3=none _ERROR_=0
_N_=47
-----------------------------------------------------------animal=48 conc=310 brood1=4 brood2=0 brood3=0 total=4 cbrood3=none _ERROR_=0
_N_=48
-----------------------------------------------------------animal=49 conc=310 brood1=6 brood2=0 brood3=0 total=6 cbrood3=none _ERROR_=0
_N_=49
------------------------------------------------------------
animal=50 conc=310 brood1=5 brood2=0 brood3=0 total=5 cbrood3=none _ERROR_=0
_N_=50
proc sort data=class.nitrofen; by conc;
data _NULL_; set class.nitrofen; by conc;
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put2.lst';
/* Write out header text information for the first observation in each conc*/
if FIRST.conc then do;
put 5*'+-----' ‘+’;
put 'Conc = ' conc;
put @1 ‘Brood 1’ @10 ‘Brood 2’ @20 ‘Brood 3’ @30 ‘TOTAL’;
end;
/* Write out the data for all records */
put @1 brood1 @10 brood2 @20 brood3 @30 total;
run;
data _NULL_;
/* add last line to the output file */
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put2.lst' MOD;
put 5*'+-----' ‘+’;
run;
*** insert file ***
+-----+-----+-----+-----+-----+
Conc = 0
Brood 1 Brood 2
Brood 3
TOTAL
3
14
10
27
5
12
15
32
6
11
17
34
6
12
15
33
6
15
15
36
5
14
15
34
6
12
15
33
5
13
12
30
3
10
11
24
6
11
14
31
+-----+-----+-----+-----+-----+
Conc = 80
Brood 1 Brood 2
Brood 3
TOTAL
6
11
16
33
5
12
16
33
6
11
18
35
5
12
16
33
8
13
15
36
3
9
14
26
5
9
13
27
7
12
12
31
5
13
14
32
3
12
14
29
+-----+-----+-----+-----+-----+
Conc = 160
Brood 1 Brood 2
Brood 3
TOTAL
6
12
11
29
6
12
11
29
2
8
13
23
6
10
11
27
6
11
13
30
6
13
12
31
6
12
12
30
5
10
11
26
6
13
10
29
6
12
11
29
+-----+-----+-----+-----+-----+
Conc = 235
Brood 1 Brood 2
Brood 3
TOTAL
4
13
6
23
6
10
5
21
2
5
0
7
6
0
6
12
6
13
8
27
6
0
10
16
7
0
6
13
4
2
9
15
6
8
7
21
7
0
10
17
+-----+-----+-----+-----+-----+
Conc = 310
Brood 1 Brood 2
Brood 3
TOTAL
6
0
0
6
6
0
0
6
7
0
0
7
0
0
0
0
5
10
0
15
5
0
0
5
6
0
0
6
4
0
0
4
6
0
0
6
5
0
0
5
+-----+-----+-----+-----+-----+
Note: The PUT statement without arguments is called a null PUT statement. The null PUT
statement writes the current output line to the current file, even if the current output line is blank,
or releases an output line being held by a previous PUT statement with a trailing @.
PUT PUT < specification(s)> <@ | @@>;
PUT < pointer-control><specification><...specification <@ | @@>>;
pointer control
@n
moves the pointer to column n.
@numericvariable
moves the pointer to the column given by numeric-variable.
@(expression)
moves the pointer to the column given by expression.
+n
moves the pointer forward n columns.
+numericvariable
moves the pointer forward or backward the number of columns indicated by
numeric-variable.
+(expression)
moves the pointer the number of columns given by expression.
#n
moves the pointer to line n.
#numeric-variable moves the pointer to the line indicated by numeric-variable.
#(expression)
moves the pointer to the line given by expression.
/
moves the pointer to column 1 of the next line.
@ | @@
holds a data line for another PUT statement, even across iterations of the
DATA step.
OVERPRINT
causes the values that follow the keyword OVERPRINT to print on the most
recently written output line. OVERPRINT does not affect the lines written to
a display.
_BLANKPAGE_ advances the pointer to the first line of a new page, even when the pointer is
currently located at the top left position of a new page.
_PAGE_
advances the pointer to the first line of a new page. SAS automatically
begins a new page when a line exceeds the current PAGESIZE= value.
proc sort data=class.nitrofen; by conc;
data _NULL_; set class.nitrofen; by conc;
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put3.lst';
/* Write out header text information for the first observation in each conc*/
if FIRST.conc then do;
put 6*'+-----' ‘+’;
put 'Conc = ' conc /
@1 ‘Brood 1’ @10 ‘Brood 2’ @20 ‘Brood 3’ @30 ‘TOTAL’ /
@1 ‘-------’ @10 ‘-------’ @20 ‘-------’ @30 ‘-----’;
end;
/* Write out the data for all records */
put @1 brood1 @10 brood2 @20 brood3 @30 total;
run;
data _NULL_;
/* add last line to the output file */
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put3.lst' MOD;
put 6*'+-----' ‘+’ //
‘Data from C. dubia Nitrofen exposure data [Bailer & Oris 1993]’;
run;
*** insert file ***
+-----+-----+-----+-----+-----+-----+
Conc = 0
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------3
14
10
27
5
12
15
32
6
11
17
34
6
12
15
33
6
15
15
36
5
14
15
34
6
12
15
33
5
13
12
30
3
10
11
24
6
11
14
31
+-----+-----+-----+-----+-----+-----+
Conc = 80
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
11
16
33
5
12
16
33
6
11
18
35
5
12
16
33
8
13
15
36
3
9
14
26
5
9
13
27
7
12
12
31
5
13
14
32
3
12
14
29
+-----+-----+-----+-----+-----+-----+
Conc = 160
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
12
11
29
6
12
11
29
2
8
13
23
6
10
11
27
6
11
13
30
6
13
12
31
6
12
12
30
5
10
11
26
6
13
10
29
6
12
11
29
+-----+-----+-----+-----+-----+-----+
Conc = 235
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------4
13
6
23
6
10
5
21
2
5
0
7
6
0
6
12
6
13
8
27
6
0
10
16
7
0
6
13
4
2
9
15
6
8
7
21
7
0
10
17
+-----+-----+-----+-----+-----+-----+
Conc = 310
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
0
0
6
6
0
0
6
7
0
0
7
0
0
0
0
5
10
0
15
5
0
0
5
6
0
0
6
4
0
0
4
6
0
0
6
5
0
0
5
+-----+-----+-----+-----+-----+-----+
Data from C. dubia Nitrofen exposure data [Bailer & Oris 1993]
PUT,
Column
PUT <variable> <$> start-column <-end-column><.decimalplaces> <@ |
@@>;
The PUT, Column Statement writes variable values in the specified columns in the output line.
The following arguments are allowed:
variable
names the variable whose value is written.
$
indicates that the variable contains character values rather than numeric values.
startcolumn
specifies the first column of the field where the value is written in the output line.
-end-column
specifies the last column of the field for the value.
.decimalplaces
specifies the number of digits to the right of the decimal point in a numeric value.
If you specify 0 for d or omit d, the value is written without a decimal point.
@ | @@
holds an output line for the execution of the next PUT statement even across
iterations of the DATA step. These line-hold specifiers are called trailing @ and
double trailing @.
PUT, Formatted
PUT<pointer-control> variable format.<@ | @@>;
PUT <pointer-control> (variable-list) (format-list) <@ | @@>;
The PUT, Formatted Statement writes variable values with the specified format in the output
line.
The following arguments are allowed:
pointercontrol
moves the output pointer to a specified line or column.
variable
names the variable whose value is written.
(variablelist)
specifies a list of variables whose values are written.
format.
specifies a format to use when the variable values are written. To override the
default alignment, you can add an alignment specification to a format:
-L left aligns the value
-C centers the value
-R right aligns the value.
( formatlist)
specifies a list of formats to use when the values of the preceding list of variables
are written.
@ | @@
holds an output line for the execution of the next PUT statement even across
iterations of the DATA step. These line-hold specifiers are called trailing @ and
double trailing @.
(format list)
Specifies a list of formats to use when the values of the preceding list of variables are written. In
a PUT statement, a format-list can include:
format. specifies the format to use to write the variable values.
pointer-control specifies one of these pointer controls to use to position a value: @, #, /, +, and
OVERPRINT.
character-string specifies one or more characters to place between formatted values.
n* specifies to repeat n times the next format in a format list.
proc sort data=class.nitrofen; by conc;
data _NULL_; set class.nitrofen; by conc;
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put4.lst';
/* Write out header text information for the first observation in each conc*/
if FIRST.conc then do;
put 6*'+-----' '+';
put 'Conc = ' conc /
@1 'Brood 1' @10 'Brood 2' @20 'Brood 3' @30 'TOTAL' /
@1 '-------' @10 '-------' @20 '-------' @30 '-----';
end;
/* Write out the data for all records */
put @5 brood1 3. @14 brood2 3. @24 brood3 3. @32 total 3.;
data _NULL_;
/* add last line to the output file */
file 'D:\baileraj\Classes\Fall 2003\sta402\data\week9-put4.lst' MOD;
put 6*'+-----' ‘+’ //
‘Data from C. dubia Nitrofen exposure data [Bailer & Oris 1993]’;
run;
run;
*** insert file ***
+-----+-----+-----+-----+-----+-----+
Conc = 0
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------3
14
10
27
5
12
15
32
6
11
17
34
6
12
15
33
6
15
15
36
5
14
15
34
6
12
15
33
5
13
12
30
3
10
11
24
6
11
14
31
+-----+-----+-----+-----+-----+-----+
Conc = 80
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
11
16
33
5
12
16
33
6
11
18
35
5
12
16
33
8
13
15
36
3
9
14
26
5
9
13
27
7
12
12
31
5
13
14
32
3
12
14
29
+-----+-----+-----+-----+-----+-----+
Conc = 160
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
12
11
29
6
12
11
29
2
8
13
23
6
10
11
27
6
11
13
30
6
13
12
31
6
12
12
30
5
10
11
26
6
13
10
29
6
12
11
29
+-----+-----+-----+-----+-----+-----+
Conc = 235
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------4
13
6
23
6
10
5
21
2
5
0
7
6
0
6
12
6
13
8
27
6
0
10
16
7
0
6
13
4
2
9
15
6
8
7
21
7
0
10
17
+-----+-----+-----+-----+-----+-----+
Conc = 310
Brood 1 Brood 2
Brood 3
TOTAL
------- ----------------6
0
0
6
6
0
0
6
7
0
0
7
0
0
0
0
5
10
0
15
5
0
0
5
6
0
0
6
4
0
0
4
6
0
0
6
5
0
0
5
+-----+-----+-----+-----+-----+-----+
Data from C. dubia Nitrofen exposure data [Bailer & Oris 1993]
PUT, List
PUT <pointer-control > variable <$><@ | @@>;
PUT <pointer-control > <n*> 'character-string' <@ | @@>;
PUT <pointer-control> variable <: | ~> format. <@ | @@>;
The PUT, List Statement writes variable values and the specified character strings in the output
line.
The following arguments are allowed:
pointercontrol
moves the output pointer to a specified line or column.
variable
names the variable whose value is written.
'characterstring'
specifies a string of text, enclosed in quotation marks, to write.
$
indicates that the variable contains character values rather than numeric values.
N*
specifies to repeat n times the subsequent character string
:
enables you to specify a format that the PUT, List statement uses to write the
variable value.
~
enables you to specify a format that the PUT, List statement uses to write the
variable value. The formatted value, included leading and trailing blanks, are
enclosed in quotation marks, even if the formatted value does not contain the
delimeter.
Restriction: You must specify the DSD option on the FILE statement if you use the
~ modifier.
format.
specifies a format to use when the variable values are written.
@ | @@
holds an output line for the execution of the next PUT statement even across
iterations of the DATA step. These line-hold specifiers are called trailing @ and
double trailing @.
PUT, Named
PUT <pointer-control> variable= <format.><@ | @@>;
PUT variable= <$> start-column <-end-column><.decimalplaces><@ | @@>;
The PUT, Named Statement writes variable values after the variable name and an equal sign.
The following arguments are allowed:
variable
names the variable whose value is written.
$
indicates that the variable contains character values rather than numeric values.
format.
specifies a format to use when the variable values are written.
start-
specifies the first column of the field where the variable name, equal sign, and
column
value are to be written in the output line.
--endcolumn
specifies the last column of the field for the value.
.decimalplaces
specifies the number of digits to the right of the decimal point in a numeric value.
If you specify 0 for d or omit d, the value is written without a decimal point.
@ | @@
holds an output line for the execution of the next PUT statement even across
iterations of the DATA step. These line-hold specifiers are called trailing @ and
double trailing @.
Moving SAS catalogs/data between systems
libname source 'SAS-data-library';
filename tranfile 'transport-file'
host-option(s)-for-file-characteristics;
proc cport library=source file=tranfile memtype=catalog;
run;
/* EXPORTING Transport file
- program executed in SAS on Win2k machine
- transferring all data files, formats, graphs from
my laptop, Win2k machine, to my unix account
*/
libname class ' D:\baileraj\Classes\Fall 2003\sta402\data’;
filename tran ‘D:\baileraj\Classes\Fall 2003\sta402\data\sta402-tran.d’;
proc cport library=class file=tran memtype=all;
run;
on the SAS LOG file we see . . .
NOTE: Proc CPORT begins to transport catalog CLASS.EXCAT
NOTE: The catalog has 1 entries and its maximum logical record length is 4076.
NOTE: Entry TEMPLATE.GRSEG has been transported.
NOTE:
NOTE:
NOTE:
NOTE:
NOTE:
NOTE:
NOTE:
Proc CPORT begins to transport catalog CLASS.GRAPH
The catalog has 5 entries and its maximum logical record length is 4076.
Entry GPLOT.GRSEG has been transported.
Entry GPLOT1.GRSEG has been transported.
Entry GPLOT2.GRSEG has been transported.
Entry GPLOT3.GRSEG has been transported.
Entry GSLIDE.GRSEG has been transported.
NOTE: Proc CPORT begins to transport data set CLASS.MANATEE
NOTE: The data set contains 3 variables and 14 observations.
Logical record length is 24.
NOTE: Proc CPORT begins to transport data set CLASS.MEAT
NOTE: The data set contains 6 variables and 12 observations.
Logical record length is 48.
NOTE: Proc CPORT begins to transport data set CLASS.NITROFEN
NOTE: The data set contains 7 variables and 50 observations.
Logical record length is 56.
NOTE:
NOTE:
NOTE:
NOTE:
Proc CPORT begins to transport catalog CLASS.TEMPCAT
The catalog has 1 entries and its maximum logical record length is 88.
Entry NEWTEMP.TEMPLATE has been transported.
PROCEDURE CPORT used:
real time
0.75 seconds
cpu time
0.04 seconds
* in my data folder, the files “sta402-tran.d” has been created . . .
* file “sta402-tran.d” FTP’d to unixgen.muohio.edu
* SAS import program “week9-import.sas” FTP’d to unixgen.muohio.edu
* on unixgen.muohio.edu – the files were imported and the SAS data files +
various catalogs (graphics, format, etc.) were defined
/export/home/baileraj/sta402/week9-import.sas
/*
File: week9-import.sas
Directory: /export/home/baileraj/sta402
Transport file: sta402-tran.d
Transferred to unixgen.muohio.edu via FTP
IMPORTING Transport file
- program executed in SAS on unixgen.muohio.edu machine
- transferring all data files, formats, graphs from
my laptop, Win2k machine, to my unix account
*/
/* notice the unix convention for folders
*/
options nocenter nodate formdlim=”-“;
libname newclass '/export/home/baileraj/sta402';
filename tran '/export/home/baileraj/sta402/sta402-tran.d';
proc cimport library=newclass infile=tran;
run;
proc contents data=newclass._all_;
run;
* typing “sas week9-import” on unixgen in the
appropriate directory generated “week9-import.log” and
“week9-import.lst.” These files were FTP’d back to my
laptop for inclusion in this handout.
/export/home/baileraj/sta402/week9-import.log
NOTE: Copyright (c) 1999-2000 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Release 8.1 (TS1M0)
Licensed to MIAMI UNIVERSITY, Site 0001295003.
NOTE: This session is executing on the SunOS 5.8 platform.
This message is contained in the SAS news file, and is presented upon
initialization. Edit the files "news" in the "misc/base" directory to
display site-specific news and information in the program log.
The command line option "-nonews" will prevent this display.
NOTE: SAS initialization used:
real time
0.17 seconds
cpu time
0.07 seconds
1
/*
2
File: week9-import.sas
3
Directory: /export/home/baileraj/sta402
4
5
Transport file: sta402-tran.d
6
Transferred to unixgen.muohio.edu via FTP
7
8
IMPORTING Transport file
9
- program executed in SAS on unixgen.muohio.edu machine
10
- transferring all data files, formats, graphs from
11
my laptop, Win2k machine, to my unix account
12
*/
13
14
/* notice the unix convention for folders */
15
16
options ls=74 nocenter nodate formdlim="-";
17
18
libname newclass '/export/home/baileraj/sta402';
NOTE: Libref NEWCLASS was successfully assigned as follows:
Engine:
V8
Physical Name: /export/home/baileraj/sta402
19
20
filename tran '/export/home/baileraj/sta402/sta402-tran.d';
21
22
proc cimport library=newclass infile=tran;
23
run;
NOTE: Proc CIMPORT begins to create/update catalog NEWCLASS.EXCAT
NOTE: TEMPLATE not imported. TEMPLATE already exists on the catalog as
TEMPLATE.
NOTE: GPLOT not imported. GPLOT already exists on the catalog as GPLOT.
NOTE: GPLOT1 not imported. GPLOT1 already exists on the catalog as GPLOT1.
NOTE: GPLOT2 not imported. GPLOT2 already exists on the catalog as GPLOT2.
NOTE: GPLOT3 not imported. GPLOT3 already exists on the catalog as GPLOT3.
NOTE: Total number of entries processed in catalog NEWCLASS.EXCAT: 0
NOTE: Proc CIMPORT begins to create/update catalog NEWCLASS.GRAPH
NOTE: GPLOT not imported. GPLOT already exists on the catalog as GPLOT.
NOTE: GPLOT1 not imported. GPLOT1 already exists on the catalog as GPLOT1.
2 The SAS System
NOTE:
NOTE:
NOTE:
NOTE:
GPLOT2 not imported. GPLOT2 already exists on the catalog as
GPLOT3 not imported. GPLOT3 already exists on the catalog as
GSLIDE not imported. GSLIDE already exists on the catalog as
Total number of entries processed in catalog NEWCLASS.GRAPH:
GPLOT2.
GPLOT3.
GSLIDE.
0
NOTE: Proc CIMPORT begins to create/update data set NEWCLASS.MANATEE
NOTE: Data set contains 3 variables and 14 observations.
Logical record length is 24
NOTE: Proc CIMPORT begins to create/update data set NEWCLASS.MEAT
NOTE: Data set contains 6 variables and 12 observations.
Logical record length is 48
NOTE: Proc CIMPORT begins to create/update data set NEWCLASS.NITROFEN
NOTE: Data set contains 7 variables and 50 observations.
Logical record length is 56
NOTE: Proc CIMPORT begins to create/update catalog NEWCLASS.TEMPCAT
NOTE: Entry NEWTEMP.TEMPLATE has been imported.
NOTE: Total number of entries processed in catalog NEWCLASS.TEMPCAT: 1
NOTE: PROCEDURE CIMPORT used:
real time
0.34 seconds
cpu time
0.07 seconds
24
25
26
proc contents data=newclass._all_;
run;
NOTE: PROCEDURE CONTENTS used:
real time
0.13 seconds
cpu time
0.06 seconds
NOTE: The PROCEDURE CONTENTS printed pages 1-4.
27
28
NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
real time
0.70 seconds
cpu time
0.24 seconds
/export/home/baileraj/sta402/week9-import.lst
The SAS System
1
The CONTENTS Procedure
-----Directory-----
Libref:
Engine:
Physical Name:
File Name:
Inode Number:
Access Permission:
Owner Name:
File Size (bytes):
NEWCLASS
V8
/export/home/baileraj/sta402
/export/home/baileraj/sta402
292282
rwx-----baileraj
512
File
# Name
Memtype
Size Last Modified
------------------------------------------------1 EXCAT
CATALOG
86016
20OCT2003:14:45:37
2 GRAPH
CATALOG
86016
20OCT2003:14:45:37
3 MANATEE
DATA
16384
20OCT2003:14:45:37
4 MEAT
DATA
16384
20OCT2003:14:45:37
5 NITROFEN DATA
16384
20OCT2003:14:45:37
6 TEMPCAT
CATALOG
24576
20OCT2003:14:45:37
-------------------------------------------------------------------------The SAS System
2
The CONTENTS Procedure
Data Set Name:
Member Type:
Engine:
Created:
Last Modified:
Protection:
Data Set Type:
Label:
NEWCLASS.MANATEE
DATA
V8
14:45 Monday, October 20, 2003
14:45 Monday, October 20, 2003
Observations:
Variables:
Indexes:
Observation Length:
Deleted Observations:
Compressed:
Sorted:
14
3
0
24
0
NO
NO
-----Engine/Host Dependent Information----Data Set Page Size:
Number of Data Set Pages:
First Data Page:
Max Obs per Page:
Obs in First Data Page:
Number of Data Set Repairs:
File Name:
Release Created:
Host Created:
Inode Number:
Access Permission:
Owner Name:
File Size (bytes):
8192
1
1
338
14
0
/export/home/baileraj/sta402/manatee.sas7bdat
8.0101M0
SunOS
293076
rw------baileraj
16384
-----Alphabetic List of Variables and Attributes----#
Variable
Type
Len
Pos
----------------------------------3
manatees
Num
8
16
2
1
nboats
year
Num
Num
8
8
8
0
-------------------------------------------------------------------------The SAS System
3
The CONTENTS Procedure
Data Set Name: NEWCLASS.MEAT
Observations:
Member Type:
DATA
Variables:
Engine:
V8
Indexes:
Created:
14:45 Monday, October 20, 2003
Observation Length:
Last Modified: 14:45 Monday, October 20, 2003
Deleted Observations:
Protection:
Compressed:
Data Set Type:
Sorted:
Label:
-----Engine/Host Dependent Information----Data Set Page Size:
Number of Data Set Pages:
First Data Page:
Max Obs per Page:
Obs in First Data Page:
Number of Data Set Repairs:
File Name:
Release Created:
Host Created:
Inode Number:
Access Permission:
Owner Name:
File Size (bytes):
12
6
0
48
0
NO
NO
8192
1
1
169
12
0
/export/home/baileraj/sta402/meat.sas7bdat
8.0101M0
SunOS
293071
rw------baileraj
16384
-----Alphabetic List of Variables and Attributes----#
Variable
Type
Len
Pos
-----------------------------------6
ICo2
Num
8
32
5
IMixed
Num
8
24
3
IPlastic
Num
8
8
4
IVacuum
Num
8
16
1
condition
Char
8
40
2
logcount
Num
8
0
-------------------------------------------------------------------------The SAS System
4
The CONTENTS Procedure
Data Set Name:
Member Type:
Engine:
Created:
Last Modified:
Protection:
Data Set Type:
NEWCLASS.NITROFEN
DATA
V8
14:45 Monday, October 20, 2003
14:45 Monday, October 20, 2003
Observations:
Variables:
Indexes:
Observation Length:
Deleted Observations:
Compressed:
Sorted:
50
7
0
56
0
NO
YES
Label:
-----Engine/Host Dependent Information----Data Set Page Size:
Number of Data Set Pages:
First Data Page:
Max Obs per Page:
Obs in First Data Page:
Number of Data Set Repairs:
File Name:
Release Created:
Host Created:
Inode Number:
Access Permission:
Owner Name:
File Size (bytes):
8192
1
1
145
50
0
/export/home/baileraj/sta402/nitrofen.sas7bdat
8.0101M0
SunOS
293072
rw------baileraj
16384
-----Alphabetic List of Variables and Attributes----#
Variable
Type
Len
Pos
Label
--------------------------------------------------------------------1
animal
Num
8
0
animal ID number
3
brood1
Num
8
16
number of young in first brood
4
brood2
Num
8
24
number of young in 2nd brood
5
brood3
Num
8
32
number of young in 3rd brood
7
cbrood3
Char
4
48
2
conc
Num
8
8
Nitrofen concentration
6
total
Num
8
40
-----Sort Information----Sortedby:
conc
Validated:
YES
Character Set: ANSI