|
&Month is defined with length of four. Therefore, your concatenation of
"1", first two characters of &Year, &Month, and "01", results in
"1YYMMMM01". The "01" is truncated to fit in &FrDate.
Hope that helps.
Donald R. Fisher, III
Project Manager
Roomstore Furniture Company
(804) 784-7600 extension 2124
DFisher@xxxxxxxxxxxxx
<clip>
dcl var(&year) type(*char) len(4)
Dcl var(&month) type(*char) len(4)
dcl var(&frdate) type(*char) len(7)
<clip>
chgvar var(&frdate) +
value('1' *cat %sst(&year 3 2) *cat &month *cat '01')
<clip>
700 - OPNQRYF FILE((IMHIST) (PPGITEMS)) FORMAT(IMHIST) QRYSLT('(tcode =
"RP") *and (trndt *eq %range(10311 10311))') KEYFLD((ITNBR) (TRNDT))
JFLD((1/ITNBR 2/ITNBR)) JDFTVAL(*NO) MAPFLD((ITNBR '1/itnbr') (PRQOH
'2/disc'))
question: Where are my days? 2003 is passed in as the year, 11 is passed in
as the month.
<clip>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.