WHERE JOB.EFFDT GE &CURBOM AND JOB.EFFDT LE &CUREOM
Your'e not setting &CUREOM, you have CURBOM twice
Typo in the post or the cause?
August 16, 2007, 08:50 AM
ColdWhiteMilk
Typo in the post. I'll update the post
Production - 7.6.4 Sandbox - 7.6.4
August 16, 2007, 08:58 AM
FrankDutch
your &CUREOM is a date string, so you have to say
WHERE JOB.EFFDT GE '&CURBOM' AND JOB.EFFDT LE '&CUREOM'
don't forget the ' ...
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
August 16, 2007, 11:01 AM
ColdWhiteMilk
quote:
WHERE JOB.EFFDT GE &LSTWED AND JOB.EFFDT LE &CURWED
Why would this work then, but the &CURBOM/&CUREOM would not work?
Production - 7.6.4 Sandbox - 7.6.4
August 16, 2007, 05:03 PM
N.Selph
You can't use DATEMOV on I8YYMD dates. You can only use it on smart dates.
You need to convert your system date to a smart date first, use DATEMOV and then convert it back. I do this sort of thing all the time and it works.
-SET &DATE1=DATECVT(&YYMD,'I8YYMD','YYMD'); -SET &CURBOM=DATEMOV(&DATE1,'BOM'); -SET &DATE2=DATECVT(&CURBOM,'YYMD','I8YYMD');This message has been edited. Last edited by: N.Selph,
I can't believe how much faster my queries are running when I use global variables rather than prompts in the criteria!This message has been edited. Last edited by: ColdWhiteMilk,
Production - 7.6.4 Sandbox - 7.6.4
August 17, 2007, 11:02 AM
ColdWhiteMilk
So then would these work for "Beginning of Last Month" and "End of Last Month"?:
Thank you Tom. Next time I'm in Richmond, I owe you a beer!
Production - 7.6.4 Sandbox - 7.6.4
August 17, 2007, 02:55 PM
Prarie
quote:
JOIN AMSTEL IN RIGHT_HAND TO ALL AMSTEL IN BAR AS DRINK_EM_UP
I'll drink to that!
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
August 23, 2007, 09:02 AM
linus
Not to sound mean, but I want to correct your verbaage. You are creating "local" variables, not "global". Global variables start with 2 ampersands, local variables start with 1. Local variables only exist for the current procedure, where global variables remain in effect for all procedures executed during an entire WF session.
WF 7.7.05 HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files HTML, Excel, PDF