Focal Point
DO NOT WORK ON WEDNESDAYS.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4987095316

November 28, 2011, 04:22 PM
John_Edwards
DO NOT WORK ON WEDNESDAYS.
So I put this in my master file because I'm creating InfoAssist targets for my users and I wanted to spiff up their field choices. They do a lot of stuff based on traffic flow that compares days of the week to each other --

DEFINE SERVICE_DAY_OF_WEEK_INDEX/W = SERVICE_DT;
DEFINE SERVICE_DAY_OF_WEEK/A8 = DATETRAN(SERVICE_DAY_OF_WEEK_INDEX, '(W)', '(wr)', 'EN', 8 , 'A8') ;

Easy-peasy. It's inconceivable that anything could go wrong. Well, Wednesday doesn't appear. No Wednesday. None. Not one record for the last three years. The other six days appear and Wednesday's data seems to appear on a line where the Service_Day_Of_Week field is blank.

But I'm not buying it. I think this is a global conspiracy, and I bet I'm not the only guy that's been working Wednesdays while the rest of you have been slacking off. I think the numbers on that line with the blank day of the week are bogus -- just put there to appease me. Well I'm on to all of you, and now all the rest of us chumps are too. Everyone else that's been falling for this -- let's all show them how we feel.

DO NOT WORK ON WEDNESDAYS.

I'll be at the Wharf Rat Pub drinking beer if anyone wants to join me.

J.

This message has been edited. Last edited by: John_Edwards,



November 28, 2011, 04:39 PM
Waz
I'll join you.....

Cool


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 28, 2011, 09:01 PM
j.gross
Last time I counted, Wednesday was 9 letters long.
November 28, 2011, 09:28 PM
Waz
Well spotted Jack.

Changing it to A9 seems to fix the issue.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 28, 2011, 09:44 PM
John_Edwards
OK, so, work Wednesday or not? What does this mean?



November 28, 2011, 09:46 PM
John_Edwards
That was code taken straight out of the help files by the way. Silly me!

J.



November 28, 2011, 09:52 PM
Waz
So the help files were not too helpful.

Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 28, 2011, 09:59 PM
John_Edwards
Hey, I had fun with them.

Don't get me wrong -- they're no Quarriors, but this was still a nice diversion for the afternoon.

J.