Path to mathematics-sas memo (9), path to mathematics-sas memo

Source: Internet
Author: User

Path to mathematics-sas memo (9), path to mathematics-sas memo

View

Libname saslib "k: \ sas ";

DataSaslib. testview4/view = saslib. testview4;

Set saslib. test4;

Run;

Proc printData = saslib. test4 noobs label;

Run;

Proc SQL;

Select testview4.id as student ID, testview4.score as score fromsaslib. testview4;

Quit;

All content of this blog is original, if reproduced please indicate the source http://blog.csdn.net/myhaspl/

Output uses the program data vector to write observations to the dataset.

DataGoods1 goods2;

Input name $ price;

If price ge29Then output goods1;

Else outputgoods2;

Datalines;

Mouse 35.6

Keyboard 28.95

Mouse pads 8.2

Headset 29.7

;

Run;

Proc printData = goods1;

Title "unit price> = 29 ";

Run;

Proc printData = goods2;

Title "unit price <29 ";

Run;


Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.