× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello all,

 I have been trying to get to work the Conmvert Date and Time
 (QWCCVTDT) API

 Case 1.
 Where the INPUT format is *YYMD and the OUTPUT format is *DTS

 Case 2.
 Where the INPUT format is *DTS and the OUTPUT format is *LONJUL


 As everybody knows the *DTS format is a System time-stamp



 The notes of the API tell me that whenever the OUTPUT format is
 *DTS only the first 8 characters of the parameter are being used

 and

 It does not tell me what the length should be for the *DTS INPUT format


 I have done a number of things

 For Case1.

 Tried a Character Field 26 bytes long with the format
YYYY-MM-DD-hh.mm.ss.uuuuuu
 For example September 14, 2001 at 12:25:45 pm looks something like this
 2001-09-14-12.25.45.000000 (dashes and perios included)

 I have also tried a Character field 20 bytes long with the format
YYYYMMDDhhmmssuuuuuu
 20010914122545000000 (no dashes, no periods)

 For Case1 and Case 2.

 Tried a Character Field 8 bytes long with the format YYYYMMDDhhmmssuuu
 where byes 1-2 is an Integer = 2001, byte 3-3 is an integer = 09
 byte 4-4 is an integer = 14, byte 5-5 is an integer = 12,
 byte 6-6 is an integer = 25, byte 7-7 is an integer = 45, and
 byte 8-8 is an integer = 000

 Tried Signed and Unsigned Integers

 In all the prior scenarios I was not able to generate my conversions

 Could you please sprinkle some API magic to my RPGLE pgms and make them
work

 Your advice will be greatly appreciated.

 After playing with the API and the *DTS format either INPUT or OUTPUT
 and going nowhere. I had to stop. tell the Midrange List the Story and
 ask for Advice


 Thank you in Advance


 Jorge Moreno
 Systems Analyst
 Woodbury, New York



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.