|
jrc=gxMz3lOPMRHQT0dZR+AlfA@xxxxxxxxxxxxxxxx wrote: > OPTIONS(*OMIT) and OPTIONS(*NOPASS) are not the > same thing... Yep, total brain lock. > Actually, I think you could accomplish this with > my library like so: > > yourDate = createDate( MDYdateString : '*MDY' ); > adjustedDate = yourDate - %days( 30 ); > adjustedDateString = %char( getDateCYMD( > adjustedDate ) ); > > *yourDate and adjustedDate are defined as date > fields, adjustedDateString is 10a. Yeah, but I am creating a multipurpose program - to be called from CL or RPG. The next step is to make it a subprocedure but that's going to take a bit more thought to allow that and still remain callable from RPG/400 and CL. I think I can just wrap the subprocedure. Bill
As an Amazon Associate we earn from qualifying purchases.
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.