If DateFormatString is not specified, then six-digit (or six-character) fields are retrieved as YYMMDD from the database. Eight-digit fields are retrieved as YYYYMMDD.Format strings are the representation of the format, composed of a sequence of characters. Each character represents a digit of the COBOL field. Possible values for characters are:
The following table lists all supported DateFormatStrings:
The following table lists all supported TimeFormatStrings:
DateFormatStrings and TimeFormatStrings from the above tables can be combined together into a DateTimeFormatString. There are two types of DateTimeFormatStrings:JulianDateFormatString is a serie of “J” characters. Up to eight “J” characaters are allowed. Only for iss dictionaries it is possible to specify the julian base date by setting the configuration property iscobol.compiler.iss_julian_base at compile time.Note: isCOBOL SQL Server requires that the number of digits in the format string matches with the number of digits of the data-item, otherwise a conversion error occurs. In addition, isCOBOL SQL Server doesn’t support hundredths of seconds (the value T in the format string), therefore they’re truncated.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |