Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting Familiar with DS2 and FedSQL

Similar presentations


Presentation on theme: "Getting Familiar with DS2 and FedSQL"— Presentation transcript:

1 Getting Familiar with DS2 and FedSQL
OASUS Spring or Fall YYYY Monday, April 17, 2017 Getting Familiar with DS2 and FedSQL Greg Ludwinski Statistics Canada First & last name Company name

2 OASUS Spring or Fall YYYY
Monday, April 17, 2017 FedSQL SAS Implementation of ANSI SQL:1999 core standard (vender neutral) Fed stands for Federated Accessible in SAS base via Proc FedSQL starting in SAS 9.4 Optimized with multi-threaded algorithms First & last name Company name

3 OASUS Spring or Fall YYYY
Monday, April 17, 2017 DS2 A programming language accessible via Proc DS2 in base SAS Accepts embedded FedSQL syntax Many similarities to the data step Leverages a new SAS kernel In-Database Code Accelerator First & last name Company name

4 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Data Types Category Types Character CHAR(n) , VARCHAR(n) NCHAR(n), NVARCHAR(n) Fractional numeric FLOAT(p), REAL, DOUBLE DECIMAL(p,s) Integer numeric TINYINT (127) SMALLINT (32,767) INTEGER (2,147,483,647) BIGINT ( 9,223,372,036,854,775,807) Binary BINARY(n) VARBINARY(n) Date and time ANSI date, time, and timestamp, Conversion functions; TO_DOUBLE, TO_DATE, TO_TIME, TO_TIMESTAMP First & last name Company name

5 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Programming Blocks DATA...ENDDATA METHOD...END PACKAGE...ENDPACKAGE THREAD...ENDTHREAD DO...END First & last name Company name

6 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Program Structure Data <output dataset | _NULL_>; {global variable declarations} method init(); {local variable declarations, DS2 Statements} end; method run(); method term(); enddata; First & last name Company name

7 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Methods All code executes in a method System methods Init(), Run(), Term(), SetParms() User-defined methods Methods can be overloaded First & last name Company name

8 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Packages DS2 packages are similar to classes Predefined FCMP Logger SQLSTMT Matrix Hash HTTP User defined First & last name Company name

9 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Threads Light weight processes Share resources Process sections of a dataset concurrently Executed with the SET FROM statement First & last name Company name

10 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Scope Declare variables (DS2SCOND=ERROR) Global scope vs. Method scope Data program vs. Package vs. Thread scope. Dot notation resolves conflicts (This) First & last name Company name

11 OASUS Spring or Fall YYYY
Monday, April 17, 2017 DS2 Benefits Precision Modularity, Encapsulation, and Abstraction Multi-threading  Performance First & last name Company name

12 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Resources DS2 Language Reference (1000+ pages) FedSQL Language Reference (500+ pages) SGF 2014 Papers DS2 and You (SGF 2013) SAS Support *DS2 Programming Essentials course is coming to Ottawa in 2015 First & last name Company name

13 OASUS Spring or Fall YYYY
Monday, April 17, 2017 Example Time First & last name Company name

14 OASUS Spring or Fall YYYY
Questions / Comments Monday, April 17, 2017 Greg Ludwinski Project Leader System Engineering Division Statistics Canada Jean Talon Building 5th Floor Section A2 170, Tunney’s Pasture driveway Ottawa, Ont., K1A 0T6 (613) First & last name Company name


Download ppt "Getting Familiar with DS2 and FedSQL"

Similar presentations


Ads by Google