June 12, 2009 Toronto Area SAS Society 1 What’s new in BASE SAS 9.2 Checkpoint/Restart Rupinder Dhillon Dhillon Consulting Inc.

Slides:



Advertisements
Similar presentations
11-Jun-14 The assert statement. 2 About the assert statement The purpose of the assert statement is to give you a way to catch program errors early The.
Advertisements

Using XA Browser/Power-Link Preferences to Improve Efficiency
Axio Research E-Compare A Tool for Data Review Bill Coar.
Chapter 9: Introducing Macro Variables 1 © Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
CS 450 Module R4. R4 Overview Due on March 11 th along with R3. R4 is a small yet critical part of the MPX system. In this module, you will add the functionality.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Introduction to SAS Programming Christina L. Ughrin Statistical Software Consulting Some notes pulled from SAS Programming I: Essentials Training.
Week # 2 - Agenda Types of AS/400 Objects Qualified/Unqualified Names
1 Appendix A: Writing and Submitting SAS ® Programs A.1 Writing and Submitting SAS Programs.
1 SAS Formats and SAS Macro Language HRP223 – 2011 November 9 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
Lecture Roger Sutton CO331 Visual programming 15: Debugging 1.
Permanent Formats and Working Across Platforms. 32bit vs. 64 bit SAS The different versions of SAS optimize datasets and formats to work as fast as possible.
Chapter 9 Auditing Database Activities
1 - Oracle Server Architecture Overview
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
Chapter 18: Modifying SAS Data Sets and Tracking Changes 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
“SAS macros are just text substitution!” “ARRRRGGHHH!!!”
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Office of Science U.S. Department of Energy Evaluating Checkpoint/Restart on the IBM SP Jay Srinivasan
1 Copyright ©2004 TAC. 2 T-WorMS Adding Sanity to Your Process Jamie L. Mitchell CTO TAC.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Chapter 6 SAS ® OLAP Cube Studio. Section 6.1 SAS OLAP Cube Studio Architecture.
Math 3400 Computer Applications of Statistics Lecture 1 Introduction and SAS Overview.
Compiled Matlab on Condor: a recipe 30 th October 2007 Clare Giacomantonio.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
1 Instant Data Warehouse Utilities Extended (Again!!) 14/7/ Today I am pleased to announce the publishing of some fantastic new functionality for.
Batch processing and sysparm A step towards scheduling.
1 Back Up with Each Submit One approach for keeping a dynamic back up copy of your current work.
Transferring VMS SAS/SPSS Data to UNIX Jeff Hayes Social Science Computing Co-op February 26, 1999.
5/30/2010 SAS Macro Language Group 6 Pradnya Nimkar, Li Lin, Linsong Zhang & Loc Tran.
Introduction to Using the Data Step Hash Object with Large Data Sets Richard Allen Peak Stat.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
© Siemens Product Lifecycle Management Software Inc. All rights reserved Siemens PLM Software Solid Edge ST4 Training Working with face relationships.
1 Deadlocks 2 Resources Examples of computer resources –printers –tape drives –tables Processes need access to resources in reasonable order Suppose.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
Chapter 7 Debugging Techniques Xiaogang Su Department of Statistics University of Central Florida.
Get Rid of Cron Scripts Using Events Sheeri Cabral Senior DB Admin/Architect,
BMTRY 789 Lecture 10: SAS MACRO Facility Annie N. Simpson, MSc.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
S11-1 ADM , Section 11, August 2005 Copyright  2005 MSC.Software Corporation SECTION 11 MACROS: OVERVIEW.
While You Were Sleeping… SAS Is Hard At Work Andrea Wainwright- Zimmerman.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Perfecto Mobile Automation
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
First test of the PoC. Caveats I am not a developer ;) I was also beta tester of Crab3+WMA in 2011; I restarted testing it ~2 weeks ago to have a 1 to.
SAS Certification Prep Guide Chapter 7 Creating and Applying User-Defined Formats.
Copyright 2009 The Little Engine That Could: Using EXCEL LIBNAME Engine Options to Enhance Data Transfers between SAS® and Microsoft® Excel Files William.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
Excel Tutorial 8 Developing an Excel Application
SQL and SQL*Plus Interaction
SECTION 3 MACROS: OVERVIEW.
Chapter 18: Modifying SAS Data Sets and Tracking Changes
3 Macro Storage.
Fall 2017 Questions and Answers (Q&A)
Checkpoint Restart Demo (Using Labels)
Checkpoint Restart Demo (Using Steps)
Automating SAS through the Power of VB Script
A Useful Footnote Martha Cox Population Health Research Unit Community Health & Epidemiology Dalhousie University Good morning. We've all had this happen:
Microsoft Office Excel 2003
Selenium IDE Installation and Use.
Writing Robust SAS Macros
Presentation transcript:

June 12, 2009 Toronto Area SAS Society 1 What’s new in BASE SAS 9.2 Checkpoint/Restart Rupinder Dhillon Dhillon Consulting Inc.

June 12, 2009Toronto Area SAS Society2 What is Checkpoint/Restart? Using Checkpoint and restart modes together allows you to resubmit batch SAS programs that failed. Using Checkpoint and restart modes together allows you to resubmit batch SAS programs that failed. When resubmitted, the program will resume at the DATA or PROC step where the error occurred When resubmitted, the program will resume at the DATA or PROC step where the error occurred DATA and PROC steps that completed successfully in the failed run will not be resubmitted. DATA and PROC steps that completed successfully in the failed run will not be resubmitted.

June 12, 2009Toronto Area SAS Society3 Checkpoint/Restart Modes Checkpoint Mode: Checkpoint Mode: SAS records info about the DATA and PROC steps in a Checkpoint library. SAS records info about the DATA and PROC steps in a Checkpoint library. Restart Mode: Restart Mode: SAS reads the checkpoint library to determine which steps completed successfully. The program resumes at the step where the failure occurred. SAS reads the checkpoint library to determine which steps completed successfully. The program resumes at the step where the failure occurred. Note: restart mode will always re-execute GLOBAL statements (ie. FILENAME, LIBNAME) and macros. Note: restart mode will always re-execute GLOBAL statements (ie. FILENAME, LIBNAME) and macros. Why? Because the checkpoint library only stores info about the steps that succeeded and failed. It does not store information about macro variables, macro definitions, SAS datasets or any other info that might have been processed in the step that failed. Why? Because the checkpoint library only stores info about the steps that succeeded and failed. It does not store information about macro variables, macro definitions, SAS datasets or any other info that might have been processed in the step that failed.

June 12, 2009Toronto Area SAS Society4 What if a step should ALWAYS be re- run? Add the statement CHECKPOINT EXECUTE_ALWAYS immediately before the step. Add the statement CHECKPOINT EXECUTE_ALWAYS immediately before the step. This statements tells SAS that this step should ignore checkpoint/restart commands and always execute. This statements tells SAS that this step should ignore checkpoint/restart commands and always execute.

June 12, 2009Toronto Area SAS Society5 Adding Checkpoint/Restart to your batch program: –Add the CHECKPOINT EXECUTE_ALWAYS statement before any DATA and PROC steps that you want to execute each time the batch program is submitted. –If your checkpoint-restart library is a user-defined library, you must add the LIBNAME statement that defines the checkpoint-restart libref as the first statement in the batch program. –If you use the WORK library as your checkpoint library, no LIBNAME statement is necessary.

June 12, 2009Toronto Area SAS Society6 Run your batch program using the following system options: SYSIN: names the batch program (if req’d in your operating environment) SYSIN: names the batch program (if req’d in your operating environment) STEPCHKPT: enables checkpoint mode STEPCHKPT: enables checkpoint mode STEPCHKPTLIB: specifies the libref of the library where SAS saves the checkpoint restart data STEPCHKPTLIB: specifies the libref of the library where SAS saves the checkpoint restart data

June 12, 2009Toronto Area SAS Society7 Run your batch program using the following system options: NOTE: if you are not using a user defined library and using the WORK library instead then: NOTE: if you are not using a user defined library and using the WORK library instead then: –NOWORKTERM: saves the WORK library when SAS ends –NOWORKINIT: does not initialize the WORK library when SAS starts ERRORCHECK STRICT: puts SAS in syntax-check mode when an error occurs in the LIBNAME, FILENAME, %INCLUDE and LOCK statements ERRORCHECK STRICT: puts SAS in syntax-check mode when an error occurs in the LIBNAME, FILENAME, %INCLUDE and LOCK statements ERRORABEND specifies whether SAS terminates for most errors ERRORABEND specifies whether SAS terminates for most errors

June 12, 2009Toronto Area SAS Society8 To resubmit a batch job in restart mode Add: Add: –STEPRESTART: tells SAS to restart using checkpoint-restart data saved in checkpoint library (Work or usedefined)

June 12, 2009Toronto Area SAS Society9 SAS Commands in batch mode In a Windows Operating Environment: In a Windows Operating Environment: sas -sysin `c:\mysas\myprogram.sas' -stepchkpt sas -sysin `c:\mysas\myprogram.sas' -stepchkpt - stepchkptlib mylibref -errorcheck strict -errorabbend - stepchkptlib mylibref -errorcheck strict -errorabbend Or: Or: sas -sysin `c:\mysas\myprogram.sas' -stepchkpt sas -sysin `c:\mysas\myprogram.sas' -stepchkpt -noworkterm –noworkinit -errorcheck strict -errorabend -noworkterm –noworkinit -errorcheck strict -errorabend Restarting: Restarting: sas -sysin `c:\sas\myprogram.sas' -stepchkpt -steprestart sas -sysin `c:\sas\myprogram.sas' -stepchkpt -steprestart -stepchklib mylibref -errorcheck strict -errorabend -stepchklib mylibref -errorcheck strict -errorabend

June 12, 2009Toronto Area SAS Society10 Display Manager Commands Keep in mind… Keep in mind… –Since Checkpoint/Restart modes are meant for batch processing, if SAS comes across a DM command, checkpoint restart modes are turned off and the checkpoint library is deleted.

June 12, 2009Toronto Area SAS Society11 Checkpoint/Restart in LSF SAS is currently looking for ways to integrate Checkpoint/Restart into the LSF scheduler. SAS is currently looking for ways to integrate Checkpoint/Restart into the LSF scheduler. Will work with Job rerun and Job requeue Will work with Job rerun and Job requeue Latest word (from SAS Global Forum 2009), look for this functionality in ‘an early 9.2 maintenance release’ Latest word (from SAS Global Forum 2009), look for this functionality in ‘an early 9.2 maintenance release’

June 12, 2009Toronto Area SAS Society12 For more info: Checkpoint/Restart on Support.sas.com: 722/HTML/default/a htm 722/HTML/default/a htm 722/HTML/default/a htm 722/HTML/default/a htm Other new features in Base 9.2: w/62435/HTML/default/baseovwhatsnew902.htm w/62435/HTML/default/baseovwhatsnew902.htm w/62435/HTML/default/baseovwhatsnew902.htm w/62435/HTML/default/baseovwhatsnew902.htm All SAS 9.2 Product Documentation: