Nyheter i SAS9.4 för programmerare



Similar documents
* --- Alle labels kan nu bestemmes i PROC PRINT ;

SAS Education Providing knowledge through global training and certification. SAS Foundation. Kursöversikt 2010

Beyond the Basics: Advanced REPORT Procedure Tips and Tricks Updated for SAS 9.2 Allison McMahill Booth, SAS Institute Inc.

Introduktion till SAS 9 Plattformen Helikopterkursen

SAS Data Integration SAS Business Intelligence

Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets

Använd SAS för att bearbeta och analysera ditt data i Hadoop

Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel

Design Suggestions for Danske Bank SE

SAS og Excel. Kender du fem forskellige måder at overføre data mellem SAS og Excel? Gert Nissen, seniorkonsulent

AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL

SAS Programming Tips, Tricks, and Techniques

Constructing a Table of Survey Data with Percent and Confidence Intervals in every Direction

SAS Views The Best of Both Worlds

Tales from the Help Desk 3: More Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board

Introduction to SAS Informats and Formats

How to Use SDTM Definition and ADaM Specifications Documents. to Facilitate SAS Programming

Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON

Tanden Care Provider Interfaces Submit Claim v3

Debugging Complex Macros

MAXimize the benefits of Mobility Management

Let SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA

Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC

Marknadsföring som en del av intäktsprocessen.

CHAPTER 1 Overview of SAS/ACCESS Interface to Relational Databases

Effective Use of SQL in SAS Programming

Elektronikavfall. Thomas Lindhqvist IIIEE Lund University. 18 February 2009

A Macro to Create Data Definition Documents

Managing very large EXCEL files using the XLS engine John H. Adams, Boehringer Ingelheim Pharmaceutical, Inc., Ridgefield, CT

The Basics of Creating Graphs with SAS/GRAPH Software Jeff Cartier, SAS Institute Inc., Cary, NC

School of Electrical Engineering

THE SAS OUTPUT DELIVERY SYSTEM: BOLDLY TAKE YOUR WEB PAGES WHERE THEY HAVE NEVER GONE BEFORE! CHEVELL PARKER, SAS INSTITUTE INC.

Ange om en aktivitet har medfört att en tjänsteresa har utförts med flyg under 2013, och i sådana fall antal gånger.

Opdatering af metadata via SAS -programmer

Creating Dynamic Reports Using Data Exchange to Excel

Same Data Different Attributes: Cloning Issues with Data Sets Brian Varney, Experis Business Analytics, Portage, MI

You have got SASMAIL!

Tanden Care Provider Interfaces PreAssessmentSTB v3


Scanning The Job Log for Errors & Notes. Devendra Patel, Information Services

Workshop 1: Can CM find common ground for HW & SW development?

Secrets from a SAS Technical Support Guy: Combining the Power of the SAS Output Delivery System with Microsoft Excel Worksheets

Microsoft + SOA = Sant? Joakim Linghall Principal System Engineer SOA and Business Process joakiml@microsoft.com

Critical section problem (repetition)

Better Safe than Sorry: A SAS Macro to Selectively Back Up Files

ABSTRACT INTRODUCTION SAS AND EXCEL CAPABILITIES SAS AND EXCEL STRUCTURES

Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS. Vincent DelGobbo, SAS Institute Inc.

Writing Data with Excel Libname Engine

Rally Guide 1 South Swedish Rally 2014 APPENDICES

Using SAS/GRAPH Software to Create Graphs on the Web Himesh Patel, SAS Institute Inc., Cary, NC Revised by David Caira, SAS Institute Inc.

Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX

Projektet Computer: Specifikation. Objektorienterad modellering och diskreta strukturer / design. Projektet Computer: Data. Projektet Computer: Test

SAS programmer til Proc Means indlæg af Per Andersen / Capgemini Danmark A/S

Development allowance and activity grant [Aktivitetsstöd och utvecklingsersättning]

The Future Roadmap of BizTalk Server. Johan Hedberg, Logica Solution Architect, MCT, MVP

openbim FM solutions and projects in Sweden Oslo, 11 September 2014 Client BIM requirements BIM in the State

B) Mean Function: This function returns the arithmetic mean (average) and ignores the missing value. E.G: Var=MEAN (var1, var2, var3 varn);

Quick Start to Data Analysis with SAS Table of Contents. Chapter 1 Introduction 1. Chapter 2 SAS Programming Concepts 7

UNIX Operating Environment

Rek. 1995:- Technical specifications SB12V3200E-AC SB12V3200E-AC. Recharges much faster. Longer service life. Only 1/3 of the size.

Car Customer Service. SFK Väst, January 2016, Måns Falk, mfalk, Security Class; Proprietary

Your Resume Selling Yourself Using SAS

MME TECHNICAL SERVICE NEWSLETTER GROUP 16 ALTERNATOR LOOSE PULLEY _ 4N13 DATE SERVICE CAMPAIGN (REF. MMC: SSI )

Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc

Data Visualization Power Tools: Expedite the Easy, Implement the Difficult, or Handle Big Data

Using SAS Output Delivery System (ODS) Markup to Generate Custom PivotTable and PivotChart Reports Chevell Parker, SAS Institute

Tanden Care Provider Interfaces Reverse Claim v1

Using PROC RANK and PROC UNIVARIATE to Rank or Decile Variables

Interface Programmera mot interface Johan Eliasson Johan Eliasson Interface kan bryta beroendekedjor Skriv generell kod «Type» Class2 Interface

Readme10_054.doc page 1 of 7

Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA

To Err is Human; to Debug, Divine Roger Staum, SAS Institute, New York, NY

Customizing FREQ Procedure Output in SAS 9.2

Stora studentgrupper och god pedagogik. Går det att kombinera?

Computer animations in physical chemistry. Kim Bolton School of Engineering, University College of Borås, SE , Borås

Integrating SAS with JMP to Build an Interactive Application

A Method for Cleaning Clinical Trial Analysis Data Sets

Staying Relevant in a Competitive World: Using the SAS Output Delivery System to Enhance, Customize, and Render Reports

Using Pharmacovigilance Reporting System to Generate Ad-hoc Reports

If You Get Sick during a Temporary Stay Abroad [Sjuk vid tillfällig vistelse utomlands]

Chapter 1 Overview of the SQL Procedure

Paper An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois

Paper DV KEYWORDS: SAS, R, Statistics, Data visualization, Monte Carlo simulation, Pseudo- random numbers

Transcription:

Nyheter i SAS9.4 för programmerare Georgios Karagiannis, Technical Support Copyright 2010 SAS Institute Inc. All rights reserved.

PROC PRINT labels proc print data=sashelp.cars label grandtotal_label='total för bägge billar' sumlabel='subtotal' noobs; where make in ('Audi','BMW') and invoice > 40000; by make ; var model invoice; sum Invoice; label invoice='pris' make ='Producent'; 2

PROC PRINT labels 3

Ny option CUROBS till SET och MODIFY satser data tjejer; set sashelp.class curobs=obs; where sex='f'; obs_num=obs; 4

Ändring i SCAN funktion. Ny variabel är inte längre 200 tecken lång utan längden av det första argumentet data scan_text; namn='georg Morsing'; efternamn=scan(namn,2); 5

Nya options till PUTC och PUTN funktioner proc format; value agefmt 10-13='10-13 år' 14-16='14-16 år'; data test; set sashelp.class; length alder alder_c alder_r $ 20; alder = putn(age,'agefmt.'); alder_c = putn(age,'agefmt.-c',20); alder_r = putn(age,'agefmt.-r',20); if _n_=1 then do; put '*' alder $char20. '*'; put '*' alder_c $char20. '*'; put '*' alder_r $char20. '*'; end; 6

Nya options till PUTC och PUTN funktioner 982 put '*' alder $char20. '*'; 983 put '*' alder_c $char20. '*'; 984 put '*' alder_r $char20. '*'; 985 end; 986 *14-16 år * * 14-16 år * * 14-16 år* NOTE: There were 19 observations read from the data set SASHELP.CLASS. 7

Ny DOSUBL funktion för att köra SAS kod mitt i ett data steg data test; Namn='Georg'; rc=dosubl('proc sql noprint; select count(age) into :antal from sashelp.class;quit;'); hur_manga= symgetn("antal"); rc=dosubl('proc sql noprint; select avg(weight) into :w from sashelp.class;quit;'); medel_vikt= symgetn("w"); 8

Ny DOSUBL funktion för att köra SAS kod mitt i ett data steg data test; Namn='Georg'; rc=dosubl('proc sql noprint; select count(age) into :antal from sashelp.class;quit;'); hur_manga= symgetn("antal"); rc=dosubl('proc sql noprint; select avg(weight) into :w from sashelp.class;quit;'); medel_vikt= symgetn("w"); 9

VBUFSIZE option sätter bufferstorlek till data step views proc options option=vbufsize ; SAS (r) Proprietary Software Release 9.4 TS1M0 VBUFSIZE=65536 Specifies the buffer size for a view. 10

VBUFSIZE option sätter bufferstorlek till data step views data test(bufsize=1m); length text $ 400; retain text 'Mycket lång text'; do I=1 to 10000000; end; x= round(ranuni(0)); output; proc contents data=test; 11

VBUFSIZE option är bufferstorlek till data step views The size of the view buffer and the size of an observation determine how many observations can be held in the buffer. To determine the observation length, use PROC CONTENTS for the view. The number of observations then determines how many times the computer must switch between the request task and the view task. The larger the view buffer is, the less task switching is needed to process a view, which can speed up execution time. 12

VBUFSIZE option är bufferstorlek till data step views data test2 / view=test2; y=x*.5; set test; Proc means data=test2; var x y; Vy: 7.42 sek, proc means: 7.42 sek options vbufsize=1m; Proc means data=test2; var x y; Vy: 7.21 sek, proc means: 7.21 sek 13

Spara SAS sessionen med PROC PRESENV options presenv; %let namn=georgios Karagiannis; data tjejer pojkar; set sashelp.class; if sex='f' then output tjejer ; else if sex='m' then output pojkar; libname sasdata 'c:\temp\data'; filename programs 'c:\temp\programs.sas'; proc presenv save permdir=sasdata sascode=programs; /* --- Hämta SAS sessionen --- */ %include 'c:\temp\programs.sas'; Run; 14

Ny system option - VARINITCHK options varinitchk=note; data test; set sashelp.class; if weihgt>100 then grupp='större än 100'; length grupp $ 10; NOTE: Variable grupp is uninitialized. options varinitchk=warning; WARNING: Variable grupp is uninitialized. options varinitchk=note; NOTE: Variable weihgt is uninitialized. options varinitchk=error; ERROR: Variable weihgt is uninitialized. NOTE: The SAS System stopped processing this step because of errors. 15

ODS LAYOUT - Placera olika typer av output sida vid sida ods layout gridded columns=2; ods region; proc print data=sashelp.class; ods region; proc print data=sashelp.class; ods layout end; 16

ODS LAYOUT - Placera olika typer av output sida vid sida ods layout gridded rows=3 row_heights=(1in 2in 3in); ods region; proc print data=sashelp.class(obs=1); ods region; proc means data=sashelp.class n mean; ods region; proc print data=sashelp.class(obs=3); ods layout end; 17

Skicka rapporter och grafer direkt till Powerpoint ods powerpoint file='c:\temp\georgios.ppt' layout=titleslide; proc odstext; p 'Denna test är gjort med den nya PROC ODSTEXT' / style=presentationtitle; p 'SAS Xperience 2013/11/21, Georgios Karagiannis' / style=presentationtitle; ods powerpoint layout=_null_; proc sgplot data=sashelp.class; bubble x=age y=height size=weight / group=sex datalabel=name transparency=.3 ; yaxis grid; ods powerpoint close; 18

Denna test är gjort med den nya PROC ODSTEXT SAS Xperience 2013/11/21, Georgios Karagiannis

ODS EPUB Ny destination för mobila enheter och e-böcker ods epub file='c:\temp\drugtest.epub' title='analyse' options(creator='georgios'); proc print data=drugtest; var drug pretreatment posttreatment; ods epub close; 21

ODS EPUB Ny destination för mobila enheter och e-böcker 22

Frågor? Copyright 2010 SAS Institute Inc. All rights reserved.