Error Message Box Vba

August 12, 2008 3:59 am | Error Message

SAS-Important and Commonly used System options

Find more Articles on SAS-VBA-Xcelsius-Flex on http://analysis-reporting.blogspot.com

  • Option AUTOSAVELOC

Information:Specifies the location of the Program Editor autosave file. If you want to autosave the SAS programs youare currently working on, this option has to be used.
Syntax: AUTOSAVELOC= “destination”Usage: options AUTOSAVELOC= “C:SASSas Codes”;Default: Enabled – 10 MinutesAdditional Info:To ensure that you do not lose any of your work in the Program Editor, SAS can automatically save yourfiles at an interval you specify. The interval can range from 0 (Autosave off) to 480 minutes. The defaultinterval is 10 minutes. The autosave file is saved as pgm.asv in the current folder or in the locationspecified by the AUTOSAVELOC system option.
To enable or disable autosave and set the interval:
Select Tools->Options->Preferences->Edit tab
Select or deselect Autosave every.
Set the interval by typing a number between 1 and 480 in the minute’s box.
You can also use the WAUTOSAVE command to enable, disable, and set the interval. WAUTOSAVE
INTERVAL=minutes will turn on autosave using minutes as the interval.

  • Option DATASTMTCHK

Information:It is possible to wipe out unintentionally an input data set when you omit a semicolon on the DATA statement. If the next statement is SET, MERGE, or UPDATE, the original data set is overwritten. Different, but significant, problems arise when the next statement is RETAIN. DATASTMTCHK= enables you to protect yourself against overwriting the input data set.
Syntax: DATASTMTCHK=COREKEYWORDS ALLKEYWORDS NONEUsage: OPTION DATASTMTCHK = COREKEYWORDSDefault: OPTION DATASTMTCHK = COREKEYWORDS

  • Option CLEANUP

Information:Specifies that during the entire session, SAS attempts to perform automatic, continuous clean-up ofresources that are not essential for execution. Nonessential resources include those that are not visibleto the user (for example, cache memory) and those that are visible to the user (for example, the KEYSwindows).When CLEANUP is in effect and an out-of-resource condition occurs (except for a disk-full condition), arequestor window is not displayed, and no intervention is required by the user. When CLEANUP is ineffect and a disk-full condition occurs, a requester window displays that allows the user to decide howto proceed.
Syntax: CLEANUP NOCLEANUPUsage: options CLEANUP;Default: NOCLEANUP

  • Option FMTSEARCH

Information:When SAS finds a reference to a user-defined format or informat, it will look for a format catalog called work.Formats. If it finds no such format catalog, or if it does not find the user-defined format in that catalog, it will look for a catalog called library.Formats. If it has no luck there, SAS will go no further unless you tell it where to look. If you name a format catalog anything other than Formats or store it in a library with a libRef other than library, you will need to use the fmtSearch= option to tell SAS where to find the formats. List the format catalogs in parentheses starting with the one you want to search first. SAS searches the format catalogs in the order listed, until the desired member is found. The value of the catalog specification can be either the libRef or libRef.catalog. If only the libRef is given, SAS assumes that Formats is the catalog name.
Syntax: FMTSEARCH=(catalog-specification-1… catalog-specification-n) Usage: options FMTSEARCH=(catalog1 catalog3 catalog3); Default: It searches in all catalogs available. If work and library are not part of the catalogs list specified, they are searched first.

  • Option NOERRORABEND

Information:The system option ERRORABEND forces an abend(Abnormal End) to occur only when a PROC step is active. The ABORT statement is misplaced in the DATA step below. The system option ERRORABEND does not cause an abend to occur because a PROC step is not active.
Syntax: errorabend Usage: options errorabend; Default: Not Enabled. Additional Info:You can use the following system options to control error handling (resolve errors) in your program:
BYERR – specifies whether SAS produces errors when the SORT procedure attempts to process a _NULL_ data set.
DKRICOND – specifies the level of error detection to report when a variable is missing from an input data set during the processing of a DROP=, KEEP=, and RENAME= data set option.
DKROCOND – specifies the level of error detection to report when a variable is missing from an output data set during the processing of a DROP=, KEEP=, and RENAME= data set option.
DSNFERR – when a SAS data set cannot be found, specifies whether SAS issues an error message.
ERRORABEND-specifies whether SAS responds to errors by terminating.
ERRORCHECK- specifies whether SAS enters syntax-check mode when errors are found in the LIBNAME, FILENAME, %INCLUDE, and LOCK statements.
ERRORS-specifies the maximum number of observations for which SAS issues complete error messages.
FMTERR-when a variable format cannot be found, specifies whether SAS generates an error or continues processing.
INVALIDDATA-specifies the value that SAS assigns to a variable when invalid numeric data is encountered.
MERROR-specifies whether SAS issues a warning message when a macro-like name does not match a macro keyword.
SERROR-specifies whether SAS issues a warning message when a macro variable reference does not match a macro variable.
STEPCHKPT-specifies whether checkpoint-restart data is to be recorded for a batch program.
STEPCHKPTLIB-specifies the libref of the library where checkpoint-restart data is saved.
STEPRESTART-specifies whether to execute a batch program by using checkpoint-restart data.
VNFERR-specifies whether SAS issues an error or warning when a BY variable exists in one data set but not another data set when processing the SET, MERGE, UPDATE, or MODIFY statements.

  • Option MSGLEVEL=

Information:Controls the level of detail in messages that are written to the SAS log.
Syntax: MSGLEVEL= N I (N-Prints notes, warnings, and error messages only. I-prints additional notes pertaining to index usage, merge processing, sort utilities, and CEDA usage, along with standard notes, warnings, and error messages.)) Usage: options msglevel=i; Default: N. Additional Info:If msglevel=i, It will be useful in cases like…
SAS writes a warning to the SAS log when a MERGE statement would cause variables to be overwritten
SAS writes a message that indicates which sorting product was used.
SAS writes a message that indicates when CEDA (Cross Environment Data Access) is being used to process a SAS file.

  • Option REALMEMSIZE

Information:Indicates the amount of virtual memory SAS can expect to allocate. Use the REALMEMSIZE system option to optimize the performance of SAS procedures that alter their algorithms and memory usage. Setting the value of REALMEMSIZE too low or too high may result in less than optimal performance.
Syntax: -REALMEMSIZE n nK nM nG hexX MIN MAX Usage: options -REALMEMSIZE MAX; Default: 0.Determined by SAS when SAS starts

  • Option SLEEPWINDOW

Information:Enables or disables the SLEEP window. The SLEEP window appears when the SLEEP function or the WAKEUP function suspends the execution of a DATA step. The SLEEP window displays the time that remains before the DATA step begins running.
Syntax: -SLEEPWINDOW -NOSLEEPWINDOW Usage: options -SLEEPWINDOW; Default: Enabled.

  • Option INVALIDDATA

Information:Specifies the value SAS is to assign to a variable when invalid numeric data are encountered. The INVALIDDATA= system option specifies the value that SAS is to assign to a variable when invalid numeric data are read with an INPUT statement or the INPUT function.
Syntax: INVALIDDATA=’character’ Usage: options INVALIDDATA=’xyz’; Default: The default value is a period (.). Additional Info:The syntax that is shown here applies to the OPTIONS statement. On the command line or in a configuration file, the syntax is specific to your operating environment. For details, see the SAS documentation for your operating environment.

  • Option ERRORS

Information:Controls the maximum number of observations for which complete error messages are printed. If data errors are detected in more than n observations, processing continues, but error messages do not print for the additional errors. Note: If you set ERRORS=0 and an error occurs, a note displays in the log which states that the limit set by the ERRORS option has been exceeded.
Syntax: ERRORS=n nK nM nG nT MIN MAX hexX Usage: options errors=1; (Prints only one error and the system stops processing) Default: By default it prints all errors. Additional Info:The syntax that is shown here applies to the OPTIONS statement. On the command line or in a configuration file, the syntax is specific to your operating environment. For details, see the SAS documentation for your operating environment.

  • Option COMPRESS

Information:Controls the compression of observations in output SAS datasets.
Syntax: COMPRESS=NO YES CHAR BINARY (CHAR BINARY specified compression techniques) Usage: options COMPRESS=YES; Default: NO. Additional Info:Compressing a file is a process that reduces the number of bytes required to represent each observation. Advantages of compressing a file include reduced storage requirements for the file and fewer I/O operations necessary to read or write to the data during processing. However, more CPU resources are required to read a compressed file (because of the overhead of uncompressing each observation), and there are situations when the resulting file size may increase rather than decrease. Use the COMPRESS= system option to compress all output data sets that are created during a SAS session. Use the option only when you are creating SAS data files (member type DATA). You cannot compress SAS views, because they contain no data.

  • Option REUSE

Information:Specifies whether new observations are written to free space in compressed SAS datasets. If space is reused, observations that are added to the SAS data set are inserted wherever enough free space exists, instead of at the end of the SAS data set. Specifying REUSE=NO results in less efficient usage of space if you delete or update many observations in a SAS data set. However, the APPEND procedure, the FSEDIT procedure, and other procedures that add observations to the SAS data set continue to add bservations to the end of the data set, as they do for uncompressed SAS data sets.
Syntax: REUSE=YES NO Usage: options REUSE=YES; Default: NO. Additional Info:The REUSE= data set option overrides the REUSE= system option.
PERFORMANCE NOTE: When using COMPRESS=YES and REUSE=YES system options settings, observations cannot be addressed by observation number.
Note that REUSE=YES takes precedence over the POINTOBS=YES data set option setting.

  • Option OBS

Information:This system option specifies when to stop processing observations or records in the dataset. OBS= tells SAS when to stop processing observations or records. To determine when to stop processing, SAS uses the value for OBS= in a formula that includes the value for OBS= and the value for FIRSTOBS=. The formula is (obs – firstobs) + 1 = results. For example, if OBS=10 and FIRSTOBS=1 (which is the default for FIRSTOBS=), the result is 10 observations or records, that is (10 – 1) + 1 = 10. If OBS=10 and FIRSTOBS=2, the result is nine observations or records, that is, (10 – 2) + 1 = 9.
Syntax: OBS= n nK nM nG nT hexX MIN MAX Usage: options OBS=20; Default: MAX. ie. Alll records in the dataset. Additional Info:You can also use OBS= to control analysis of SAS data sets in PROC steps. E.g: Proc Print

  • Option YEARCUTOFF

Information:Specifies the first year of a 100-year span that will be used by date informats and functions to read a two-digit year. The YEARCUTOFF= value is the default that is used by various date and datetime informats and functions. If the default value of nnnn (1920) is in effect, the 100-year span begins with 1920 and ends with 2019. Therefore, any informat or function that uses a two-digit year value that ranges from 20 to 99 assumes a prefix of 19. For example, the value 92 refers to the year 1992.
Syntax: YEARCUTOFF= nnnn nnnnn Usage: options YEARCUTOFF=1950; Default: 1920 Additional Info:YEARCUTOFF= has no effect on existing SAS dates or dates that are read from input data that include a four-digit year, except those with leading zeroes. For example, 0076 with yearcutoff=1990 indicates 1976.

  • Option MPRINT

Information:Displays the SAS statements that are generated by macro execution. This is useful for debugging macros. The MPRINT option displays the text generated by macro execution. Each SAS statement begins a new line. Each line of MPRINT output is identified with the prefix MPRINT(macro-name):, to identify the macro that generates the statement. Tokens that are separated by multiple spaces are printed with one intervening space. Each statement ends with a semicolon.
Syntax: MPRINT NOMPRINT Usage: options MPRINT; Default: NOMPRINT – It does not print the statements Additional Info:You can direct MPRINT output to an external file by also using the MFILE option and assigning the fileref MPRINT to that file. For more information, see MFILE System Option.

  • Option MLOGIC

Information:Causes the macro processor to trace its execution and to write the trace information to the SAS log. This option is a useful debugging tool. Each line generated by the MLOGIC option is identified with the prefix MLOGIC (macro-name):. If MLOGIC is in effect and the macro processor encounters a macro invocation, the macro processor displays messages that identify 1. The beginning of macro execution 2. Values of macro parameters at invocation 3. Execution of each macro program statement 4. Whether each %IF condition is true or false 5. The ending of macro execution.
Syntax: MLOGIC NOMLOGIC Usage: options MLOGIC; Default: NOMLOGIC – It does not print. Additional Info:Using MLOGIC can produce a great deal of output.

  • Option SYMBOLGEN

Information:Displays the results of resolving macro variable references. This option is useful for debugging. SYMBOLGEN displays the results in the form: “SYMBOLGEN: Macro variable name resolves to value” This option also indicates when a double ampersand (&& ) resolves to a single ampersand (& ).
Syntax: SYMBOLGEN NOSYMBOLGEN Usage: options SYMBOLGEN; Default: NOSYMBOLGEN – It does not print. Additional Info:It also has an alias that can be remembered easily. SGEN NOSGEN.

  • Option SASMSTORE

Information:specifies the libref of a SAS library that contains, or will contain, a catalog of stored compiled SAS macros. This libref cannot be WORK.
Syntax: SASMSTORE = libref;Usage: options MSTORED SASMSTORE = libref; libname libref “”;
Default: NOMSTORED
Additional info:It is used with MSTORED.
MSTORED specifies that the macro facility search for stored compiled macros in the SASMACRO catalog of the SAS data library that is referenced by the SASMSTORE option. Regardless of the setting of MSTORED, the macro facility first searches for macros in the SASMACR catalog in the WORK library. If you specify MSTORED and the desired macro is not found in the WORK library, the macro facility searches the SASMACR catalog in the SAS data library that is referenced by SASMSTORE. If you specify NOMSTORED, the subsequent search is not performed.

  • Option REALMEMSIZE=

Information:
Use the REALMEMSIZE= system option to optimize the performance of SAS procedures that alter their algorithms and memory usage. Setting the value of REALMEMSIZE= too low might result in less than optimal performance.
Syntax: n nK nM nG hexX MIN MAX Usage: options REALMEMSIZE = ; Default: 0 Additional Info:n nK nM nG specifies the amount of memory to reserve in multiples of 1 (bytes); 1,024 (kilobytes); 1,048,576 (megabytes); or 1,073,741,824 (gigabytes), respectively. The value of n can be a decimal value. For example, a value of 8 specifies 8 bytes, a value of .782k specifies 801 bytes, and a value of 3m specifies 3,145,728 bytes. hexX specifies the amount of memory as a hexadecimal value. You must specify the value beginning with a number (0-9), followed by hex digits (0-9, A-F), and then followed by an X. For example, the value 2dx sets the amount of memory to 45 bytes.MIN specifies a value of 0, which indicates that the memory usage is determined by SAS when SAS starts. This is the default value and should not be changed under normal conditions.MAX specifies to set the memory size to the largest permissible value.

Option MISSING
Information:
Use the MISSING = ‘Character’ system option to specify a character for the missing numeric values.
Syntax:MISSING=’character’Usage: options MISSING = ‘N’
Option TERMSTMT
Information:Specifies the SAS statements to be executed at SAS termination.
Syntax :TERMSTMT=’statement(s)’ Usage: TERMSTMT= is fully supported in batch mode. In interactive modes, TERMSTMT= is executed only when you submit the ENDSAS statement from an editor window to terminate the SAS session. Terminating SAS by any other means in interactive mode results in TERMSTMT= not being execute

  • Option MergeNoBy=error

Information:
Sometimes unintentionally we merge the data sets without the “By ….” statement, which can cause total chaos to our result data. Fortunately SAS allows us to refuse such instruction. The MergeNoBy=error option will not let user create such data set. It will show EROR Msg. in the Log.
If we specify something like Options mergeNoBy = Warn; (This is default case in SAS9.1 edition.)
We will get a Warning in the Log and data set will be created.

If we change this option to Options mergeNoBy = error;
We will get Error in Log and data set will not be created.
ERROR: No BY statement was specified for a MERGE statement.
WARNING: The data set LIB.MERGE may be incomplete. When this step was stopped there were 0 observations and 4 variables.

On the rare occasion that you do want to merge with no By statement, code
Options mergeNoBy=noWarn ; immediately before the Data step and
Options mergeNoBy=error ; immediately after.

Syntax: MergeNoBy = Error/Warn/NoWarn
Usage: Options MergeNoBy = Error; While merging the data sets, whether user want to use “By” statement or not.
Default: WARNING, SAS9.1 will warn the user and also create the data set.

About the Author

From the Authors of
http://analysis-reporting.blogspot.com
. Find This Article
Here


Error Message


Error Message


$116.3


Please note that the content of this book primarily consists of articles available from Wikipedia or other free sources online. An error message is information displayed when an unexpected condition occurs, usually on a computer or other device. On modern operating systems with graphical user interfaces, error messages are often displayed using dialog boxes. Error messages are used when user intervention is required, to indicate that a desired operation has failed, or to relay important warnings (such as warning a computer user that they are almost out of hard disk space). Error messages are seen widely throughout computing, and are part of every operating system or computer hardware device. Proper design of error messages is an important topic in usability and other fields of humancomputer interaction. Author: Miller, Frederic P./ Vandome, Agnes F./ McBrewster, John Binding Type: Paperback Number of Pages: 184 Publication Date: 2011/02/14 Language: English Dimensions: 5.98 x 9.02 x 0.42 inches

Excel VBA Macro Programming by Shepherd, Richard Edition ILL, 1


Excel VBA Macro Programming by Shepherd, Richard Edition ILL, 1


$38.49


Part I: Programming in Excel VBA 1: The Basics 2: Variables, Arrays, Constants, and Data Types 3: Modules, Functions, and Subroutines 4: Programming Basics: Decisions and Looping 5: Strings and Functions and Message Boxes 6: Operators 7: Debugging 8: Errors and the Error Function 9: Dialogs 10: Common Dialog Control 11: Command Bars and Buttons Part II: Object Models 12: The Excel Object Model 13: The Excel Object Model-Main Objects 14: Using Excel to Interact with Other Office Programs Part III: Advanced Techniques in Excel VBA 15: Charts and Graphs 16: Working with Databases 17: API Calls 18: Class Modules 19: Animation Part IV: VBA in Action 20: Converting Labels to Numbers and Numbers to Labels 21: Transposing a Range of Cells 22: Adding Formula Details into Comments 23: Calculating a Range 24: Reversing a Label 25: Who Created the Workbook? 26: Evaluating a Cell 27: Sorting Worksheets into Alphabetical Order 28: Replacing Characters in a String 29: Timed Events 30: Auto Totaling a Matrix of Numbers 31: Absolute and Relative Formulas 32: Coloring Alternate Rows and Columns of the Spreadsheet 33: Coloring Cells Containing Formulas 34: Summing Cells by Reference to a Master Cell 35: Globally Changing a Range of Values 36: Displaying Hidden Sheets Without a Password 37: Searching Multiple Sheets and Workbooks 38: Brighten Up Your Comments 39: An Alternative to Message Boxes 40: Working with Shapes 41: Turning Your VBA Code into an Add-In A: ASCII Character Codes

Excel 2007 VBA Macro Programming by Shepherd, Richard Edition ILL, 2


Excel 2007 VBA Macro Programming by Shepherd, Richard Edition ILL, 2


$27.49


Part I. Programming in Excel VBA; Ch. 1. The Basics; Ch. 2. Variables, Arrays, Constants, and Data Types; Ch. 3. Modules, Functions, and Subroutines; Ch. 4. Programming Basics: Decisions and Looping; Ch. 5. Strings and Functions and Message Boxes; Ch. 6. Operators; Ch. 7. Debugging; Ch. 8. Errors and the Error Function; Ch. 9. Dialogs; Ch. 10. Common Dialog Control; Ch. 11. Command Bars and Buttons; Part II. Object Models; Ch. 12. The Excel Object Model; Ch. 13. The Excel Object Model–Main Objects; Ch. 14. Using Excel to Interact with Other Office Programs; Ch. Part III. Advanced Techniques in Excel VBA; Ch. 15. Charts and Graphs; Ch. 16. Working with Databases; Ch. 17. API Calls; Ch. 18. Class Modules; Ch. 19. Animation; Ch. 20. Working with XML Files; Ch. 21. The Ribbon; Ch. 22. Pivot Tables; Part IV. VBA in Action; Ch. 23. Converting Labels to Numbers and Numbers to Labels; Ch. 24. Transposing a Range of Cells; Ch. 25. Adding Formula Details into Comments; Ch. 26. Calculating a Range; Ch. 27. Reversing a Label; Ch. 28. Who Created the Workbook; Ch. 29. Evaluating a Cell; Ch. 30. Sorting Worksheets into Alphabetical Order; Ch. 31. Replacing Characters in a String; Ch. 32. Timed Events; Ch. 33. Auto-Totaling a Matrix of Numbers; Ch. 34. Absolute and Relative Formulas; Ch. 35. Coloring Alternate Rows and Columns of the Spreadsheet; Ch. 36. Coloring Cells Containing Formulas; Ch. 37. Summing Cells by Reference to a Master Cell; Ch. 38. Globally Changing a Range of Values; Ch. 39. Displaying Hidden Sheets Without a Password; Ch. 40. Searching Multiple Sheets and Workbooks; Ch. 41. Brighten Up Your Comments; Ch. 42. Importing a CSV File Containing Leading Zeros; Ch. 43. Working with Shapes; Ch. 44. Turning Your VBA Code into a Add-In; Appendix. ASCII Character Codes; Index

Microsoft Access 2010 VBA Macro Programming by Shepherd, Richard Edition ILL, 1


Microsoft Access 2010 VBA Macro Programming by Shepherd, Richard Edition ILL, 1


$27.49


Part I: Programming in Access VBA; Chapter 1. The Basics; Chapter 2. Variables, Arrays, Constants and Data Types; Chapter 3. Modules, Functions and Subroutines; Chapter 4. Programming Basics: Decisions and Looping; Chapter 5. Strings and Functions and Message Boxes;Chapter 6. Operators; Chapter 7. Debugging; Chapter 8. Errors and the Error Function; Chapter 9. Forms and Reports; Chapter 10. Common Dialog Control; Chapter 11. Working with the Ribbon; Chapter 12. SQL Queries; Chapter 13. Table Macros; Part II: Object Models; Chapter 14. The Access Object Models; Chapter 15. The Main Objects; Chapter 16. The DoCmd Object; Chapter 17. Using Access to Interact with Other Office Programs; Part III: Advanced Techniques in Access VBA; Chapter 18. Charts and Graphs; Chapter 19. Working with External Databases; Chapter 20. API Calls; Chapter 21. Class Modules; Chapter 22.Animation; Part IV: Access VBA in Action; Chapter 23. Getting the Login ID; Chapter 24. Securing Your Database; Chapter 25. Creating Audit Trails on Tables; Chapter 26. Creating and Editing Queries in VBA; Chapter 27. Search and Replace in Queries; Chapter 28. Using the DateAdd FunctionChapter 29. Monitoring Table Statistics; Chapter 30. Handling Large Text Files; Chapter 31. Create and Change Table Structures; Chapter 32. Create an Objects Inventory; Chapter 33. Manipulate Charts Colors; Chapter 34. Drill Down on Charts; Chapter 35. Use Excel For Output; Chapter 36. Using FTP in VBA; Chapter 37. What Happens When the 2-GB Limit is Reached; Chapter 38. Creating Menu Structures with the Ribbon; Chapter 39. Make Controls on Forms Interactive; Chapter 40. Set Up Levels of User Security; Appendix. ASCII Character Codes; Index

ANotB Error


ANotB Error


$79.66


High Quality Content by WIKIPEDIA articles High Quality Content by WIKIPEDIA articles AnotB error (also known as stage 4 error or perseverative error ) is a phenomenon uncovered by the work of Jean Piaget in his theory of cognitive development of children. The AnotB error is a particular error made by young children during substage 4 of their sensorimotor stage. A typical task goes like this: An experimenter hides an attractive toy under box A within the babys reach. The baby searches for the toy, looks under box A, and finds the toy. This activity is usually repeated several times (always with the researcher hiding the toy under box A ). Then, in the critical trial, the experimenter moves the toy under box B, also within easy reach of the baby. Babies of 10months or younger typically make the perseverance error, meaning they look under box A even though they saw the researcher move the toy under box B, and box B is just as easy to reach. This demonstrates a lack of, or incomplete, schema of object permanence. Children of 12months or older typically do not make this error. Author: Surhone, Lambert M./ Tennoe, Mariam T./ Henssonow, Susan F. Binding Type: Paperback Number of Pages: 106 Publication Date: 2010/08/19 Language: English Dimensions: 5.98 x 9.00 x 0.25 inches


Tags:

Write a comment:





Spam Protection by WP-SpamFree

The owner of this website Susie Mills is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking Nuke Modified | AntiVirus Remover to Amazon Properties including, but not limited to amazon.com, endless.com, smallparts.com, myhabit.com or amazonwireless.com