11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• If you specify an invalid dformat code (an integer less than -1 or greater than 9, a zero,or a non-integer value)• If you specify an invalid yearopt code (an integer less than -1 or greater than 6, a valueof zero, or a non-integer value)• If you do not specify a startwin value when yearopt is 3 or 5You receive a error under the following conditions:• If you specify an invalid value for a date and do not supply an erropt value• If the given month number is greater than the number of month values in monthlist• If maxdate is less than mindate• If endwin is less than startwin• If startwin and endwin specify a sliding temporal window whose duration is greater than100 yearsYou receive a error under the following conditions:• If you specify a date (or an offset to “T”) which is earlier than Dec. 31, 1840 or later thanDec. 31, 9999, and do not supply an erropt value• If you specify an otherwise valid date (or offset to “T”) which is outside the range definedby the values assumed for maxdate and mindate and do not supply an erropt valueError Handling with erroptWhen supplied, the erropt parameter only suppresses error messages generated due to invalidor out of range values of date. Errors generated due to invalid or out of range values of otherparameters will always generate error messages whether or not erropt has been supplied.For example, an error is always generated when $ZDATEH specifiesa sliding window where endwin is earlier than startwin. Similarly, an error is generated when maxdate is less than mindate.Acceptable Date Values with Date Formats 5 through 9The $ZDATEH date formats (dformat) 5 through 9 accept any date value that is unambiguous.Date formats 5 through 9 assume the current year if the date you specify does not include ayear. When you pass a dformat of 5, 6, 7, 8, or 9 to $ZDATEH, it accepts any of the followingformats:• Mmm D$ZDATEH<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 341

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!