With the SAS Gplot/gchart module, simple charts can be drawn.1. Bar chart, doughnut chart, pie chart and so on;Proc Gchart data=xxxxx;Vbar varname;RunThis process contains several options, note that the difference between the subgroup and group options, subgroup is not listed, and group is drawn separately for different groups;2. Scatter plots, line charts, etc.Proc Gplot data=xxxxx;Plot y*x;RunWhen there are several different lines on the same table,
Data heartemp;Set Sashelp.heart;If bp_status= ' normal ' then delete;* blood pressure is not written to the data set, drop excludes variables, delete excludes observations;Keep status sex Weight_status bp_status;Rename bp_status = Bloodpressure;RunProc Print data= heartemp (obs=10);RunData mytemp;input x y;Z=x+y;/* Statistical odd even, evennumber+1 complete accumulation */If mod (z,2) =0 then evennumber+1;else oddnumber+1;Cards12 5568 68 9788 999114 8628 9738 6748 9778 234;RunProc Print;RunThis
1, missing values are missing, characters are missing;2, Problem: PROC tabulate watchmaking class There is missing, the purpose of the missing range of a non-missing value belongs to a class, the other in accordance with the actual operation, the remainder with other.PROC"0=" 1 ' = '. A CLASS "' 2 ' = ' 03. B CLASS "other = "04. OTHERS ";RUN;/* results, ' returned to ' 04. Other "*//* After testing, change (') to (') is correct, that is, the missing is "01. Missing "* *[
SAS function Learning1. Function Write format:1) General writing format: function name (parameter 1, parameter 2, ...) )2) Shorthand format: function name (of parameter 1-parameter n) or function name (of parameter 1 parameter 2 ...) )2. Function Introduction2.1 Character processing function1) substr 2) Scan 3) index 4) length 5) Compress 6) Translate 7) Trim 8) UpCase 9) lowcase) UrlDecode) (TRANWRD) rank) byte () repeat) reverse2.2 Mathematical arit
= Month prefix = Ctarget;run;Changes before and after effects are as followsBy statement grouping transpose datasetsFor each by group, the PROC transpose creates one observation for each variable the IT transposes. The by variable itself are not transposedI understand that the values of the first column of the transferred dataset are all previous variable names, and if by, the by variable does not transpose, but instead appears as a grouping variable in the first column (considering the case of
; Datalines;drug Alive -Drug DeadTenPlacebo Alive thePlacebo dead -; run;procFreq data=test; Table Group*Outcome/chisq norow Nocol nopercent; WeightCount; * If there is no weight, then the list is all 1; Runprocformat; Value Purfmt1 ="$ - +" 0 ="$ -"; run; * disordered qualitative double-variable analysis; procFreq data=Double. B_sales_inc; Tables Gender*Purchase/ chisq expected cellchi2 nocol nopercent; *CHISQ is the key to see Chi-square statistics; Format purchase purfmt.; T
corresponding link. Otherwise, an error occurs in the next output.
Filename outp 'C: \ Users \ Administrator \ Desktop \ mytestfortoday \ test.txt '; ODS listing select basicmeasures quantiles; * select the output result range, which can be univariate. age. male. basicmeasures; ODS listing file = outp; * select the output file; proc univariate DATA = sashelp. class; var weight; run; proc freq DATA = sashelp. class; Table sex; run; ODS listing;
4:ODS results on/off
When the program is large, clo
to customize the sheet name. By default, the sheet name is the same as that of the SAS dataset. note: sheet-name cannot end with $ */run. [file suffixes of various PCs and corresponding DBMS identifier] type of file suffix DBMS identifier Microsoft Excel :. XLS ------------- Excel (32-bit windows) ----------- XLS (Unix or 64-bit windows) DBASE. DBF ------------ dbf jmp. JMP ------------ JMP Lotus. wk4 ------------ wk4 paradox. DB ------------ paradox
According to the order list, the HP rx2660 minicomputers in various cities are configured with 4 146 gb sas 10 k 2.5 inch hard disks. When the operating system is installed, two disks are automatically made into RAID 1, the principle is to prioritize hard disks with a large slot number (from left to right, such as 1, 2, 3, 4, 5, 6, 7, and 8 ).
Check whether the host's built-in hard drive has been made into RAID 1:
From the above output information,
Someone in the Forum asked if the SQL Server account can be case-sensitive. In fact, it is okay, but there are prerequisites.
Many people think that only passwords of SQL Server are case-sensitive, while SQL login accounts are case-insensitive. The default SQL Server login account is case insensitive, but if you installIf the server sorting rule is case-sensitive, the login account of SQL Server will also be case-sensitive (for SA accounts, you can create SA, SA, and SA ).
For example, my
OracleThe decode function in the database is one of the common functions of Oracle PL/SQL. What is its purpose? Next we will introduce this process and how to use it.SAS macroTo implement the decode function in the Oracle database.
First, let's construct an example. If we want to add a salary to a staff member of zhixing, the standard is: the salary is less than 8000 RMB plus 20%; the salary is more than 8000 RMB plus 15%, usually, select the salary field value in the record first? Select salary
1
Use oledb
Code description: library copy the testtable table to the local SAS work logical database
Libname mydb oledb init_string
=
"
Provider = sqloledb.1; Password = ******; persist Security info = true; user id = sa; initial catalog = testdb; Data Source = 192.168.0.3
"
;Data testtable;
Set
Mydb. testtable;Run;Proc print;Run;
2 use odbc engine
Code Description: Replace the testdb data on the 192.168.
missing X includes 0 values, applicable to both numeric and numeric values; run; proc print data = B Noobs;
The most important differences between where and if
1: Where is not executable, if is executable
2: Where has its own specific expression. If is a general expression, for example, where X is missing;
3: Where can only be selected from the existing SAS data set. If statements can also be selected from observations generated by input statements.
Installing Windows 7 using the SAS hard drive with the Intel onboard Blue SCU interface requires the drive to be loaded with a USB flash drive, as follows:First determine the system version, open the following link to download the driver:Windows 7 32-bit:http://think.lenovo.com.cn/support/driver/driverdetail.aspx?deditid=7545Windows 7 64-bit:http://think.lenovo.com.cn/support/driver/driverdetail.aspx?deditid=7546After the download is complete, double-
Before the introduction of the base SAS is divided into data step and process step, the process step is to analyze and process the data set of data step generation, and excavate the data information, write the analysis report to do the summary evaluation.1. Syntax format:Proc Procedure name ④ ①>; / * Follow-up will be interpreted according to the callout's ordinal description * /Procedure Statements ②③Run2, the process statement ②:
var: Speci
Merge merges 2 or more 2 datasets.libname saslib "k:\SAS";data Saslib.goodsprice;input ID name$ price 6.2;Datalines;1 Mouse 35.62 keyboard 28.953 Mouse Pad 8.24 Headset 29.7;data saslib.goodsquantity;input ID quantity;Datalines;1 1502 984 1623 45;proc Sort data=saslib.goodsprice; by ID;proc Sort data=saslib.goodsquantity; by ID;data saslib.mygoods;merge saslib.goodspricesaslib.goodsquantity; by ID;run;proc Print data= saslib.mygoods;run;This blog a
SAS automatic variable: created automatically by the data step statement.
_n_: observation serial number;
_ERROR_: Error message variable;
_NUMERIC_: all numerical variables;
_character_: all character variables;
_all_: all variables;
Fisrt.variable: The first observation of the same by group;
Last.variable: The last observation of the same by group;
_IORC_: If the dataset is not observed, then iorc=1, otherwise iorc=0 is cr
pre-conditions:1. InstallationLSI's megacli package Megacli642. query tool for installing SCSI devices LSSCSI Apt-get Install LSSCSIsteps:1. Find the drive letter according to OsdidCeph-disk List |Grep-a 1-b 1 osd.0 | Egrep "^/dev/sd*\b" |cut-d ': '-f1 2. Find the device based on the drive letterTarget IDLsscsi | grep/dev/sdd | awk ' {print $} ' | cut-d ': '-f33. Determine if the disk is a SAS disk perform the following command to return 2./megacli-ld
Reference: http://blog.csdn.net/tianlesoftware/article/details/6009110The main types of hard disk interfaces currently available are IDE, SATA, SCSI, SAS, FC, and so on.The IDE is commonly known as the port, SATA is commonly known as the serial port, both of the hard disk is the PC and low-end server common hard disk.SCSI is the abbreviation for "Small computer system dedicated interface", which is the hard disk with this interface.SAS is the SCSI int
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.