• Subject: Re: Questions on CONVERT-DATE-TIME and ADD-DURATION
  • From: Jon.Paris@xxxxxxxxxx
  • Date: Tue, 29 Feb 2000 07:03:29 -0500



 >> That misunderstanding was definitely part of my problem.  I thought you told
CONVERT-DATE-TIME what you were converting to, not what you were converting
from.

I think (like in RPG) it can be either.  I don't have a manual handy so I'm
guessing but ...... When trying to understand what the manual means, the
important thing to remember is that you have to tell the compiler about the
thing the it doesn't already know.  If you are going from a char field to a
"real" date, the compiler already knows the format of the date - it has no idea
what the format of the char field is - so that is what you have to tell it.  If
you have a real date and you are targeting a char field then again the compiler
knows about the date so you tell it the format you want for the char field.


+---
| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.