• Subject: Re: Can date math be done in CL ?
  • From: MacWheel99@xxxxxxx
  • Date: Sun, 12 Nov 2000 05:37:40 EST

Thanks Booth for a key clue on how I could do this.

> What happens if you:
>  retrieve today's date, 
>  CVTDAT to format *LONGJUL,
>  do a CHGVAR into a numeric field, 
>  then add 14 to the numeric value? 
>  
>  Then CHGVAR from the new numeric value to *LONGJUL and 
>  CVTDAT the *LONGJUL to *MDY for your screen layout?
>  
>  Obviously you'd think to deal with a resulting number like 2000367.

>  MacWheel99@aol.com

>  Standard scenario ..
>  CL sets up prompt screen
>  user choices on prompt screen control choices which RPG JOBQ printer data 
>  ranges
>  
>  I want prompt screen default date selection range to pre-compute thru 2 
>  weeks into the future
>  
>  I can write then call an RPG program to translate what that is from today 
>  date.
>  Is there a standard CMD or API already available to do this?

Alister William Macintyre 

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

This thread ...


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

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].