• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
      • Statement Format Symbols
      • Alphabetical List of Functions and Statements
      • List of Reserved Words
      • Deprecated Features
      • Declaration Statements
      • Symbol Functions
      • Item Functions
      • Array Object
      • Audio Object
      • Barcode and QR Codes
      • Case Object
      • Document Object
      • File Object
      • Freq Object
      • Geometry Object
      • HashMap Object
      • Image Object
      • List Object
      • Map Object
      • Path
      • Pff Object
      • SystemApp Object
      • ValueSet Object
      • Program Control Statements
      • Assignment Statements
      • Data Entry Statements and Functions
      • Batch Edit Statements
      • Numeric Functions
      • String Functions
      • Multiple Occurrence Functions
      • General Functions
        • Compress Function
        • Decompress Function
        • diagnostics Function
        • Encode Function
        • ErrMsg Function
        • ExecSystem Function (Desktop)
        • ExecSystem Function (Mobile)
        • ExecPFF Function
        • GetProperty Function
        • GetLabel Function
        • GetLanguage Function
        • GetSymbol Function
        • GetValueLabel Function
        • hash Function
        • htmldialog Function
        • InValueSet Function
        • Invoke Function
        • IsChecked Function
        • loadsetting Function
        • LogText Function
        • MaxValue Function
        • MinValue Function
        • paradata Function
        • PathConcat Function
        • PathName Function
        • savesetting Function
        • SetLanguage Function
        • SetProperty Function
        • SetValueSet Function
        • SetValueSets Function
        • Special Function
        • sqlquery Function
        • Stop Function
        • SysParm Function
        • tr Function
        • Trace Function
        • UUID Function
        • View Function
        • Warning Function
      • Date and Time Functions
      • External File Functions
      • Synchronization Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

diagnostics Function

Format
s = diagnostics(ʃpropertyʅʃ, argument, ...ʅ);
Description
The diagnostics function is used to get information about the version of CSPro you are using, as well as other functionality. It is used mostly for troubleshooting.
The function takes a string expression property and then optional string arguments that determine what it returns. If called without a property, the function will return all of the no-argument diagnostic properties. The properties are:
PropertyArgumentDiagnostic Value
versionThe currently running CSPro version (8.0).
version_detailedThe currently running CSPro version (8.0.1).
releasedateThe date that this version of CSPro was released (in YYYYMMDD format).
betaWhether the current CSPro version is a beta version (1 if true, 0 if false).
serializerThe version of a .pen file that would be created with the current version of CSPro.
md5File nameThe MD5 hash value of the file. This can also be created by using the action Hash.createMd5.
Return Value
The function returns a string containing the diagnostic information. If the property is invalid, then the function returns a blank string.
Example
PROC MATERNITY_QUEST

preproc

   
if diagnostics("version") <> "8.0" then
       
errmsg("This application has not been tested with this version of CSPro. "
               
"Things may behave differently than expected.");
   
endif;