Focal Point
Day Function...

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

January 29, 2008, 02:30 AM
focuzsambit
Day Function...
Do we have any function to find out the Day...
Input will be current date (&date)...and output should be the Day (Mon.tue..wed...)...

any clue on this ?

tks/sam


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 29, 2008, 03:04 AM
Tony A
Sam,

If you are working in Dev Studio then use the HELP provided as it will contain many useful (and some not so useful Wink) references for you. If you do not have DS then use the search function top right on the post collection.

If you want date functions then just search on HDATE or something similar to help you find the function you need. Also search on DOWK and DOWKL.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 29, 2008, 03:20 AM
FrankDutch
Sam

You also should buy the book "(Almost) 1001 Ways to Work with DATES in WebFOCUS" to be ordered by IBI. It's only 25 U$.

And you can download several manuals in PDF, makes it very easy to search.




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

January 29, 2008, 04:30 AM
focuzsambit
Those things take time...do u thing i should refer them as long as u ppl are around... Good One


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 29, 2008, 08:10 AM
Tony A
Yes, I do. That way you will learn and become more condifdent and able. If we were to just provide the answers all the time then how do people learn?

To resurrect an old saying -

Give a man a fish and he will eat well for one day.
Give him a boat and a rod and he will eat well for longer.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 29, 2008, 09:02 AM
jgelona
Also, download the Describing Data manual for your release. It has all the available formats for dates and every other type of field.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
January 29, 2008, 09:45 AM
PBrightwell
And we are all ready to start charging you consulting fees.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
January 29, 2008, 10:18 AM
Leah
The GUI help also has some good information on date display. Hopefully you can get some training as well.


Leah
January 29, 2008, 11:42 PM
focuzsambit
but don't you all think that will help you guys lose form... Winky


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 30, 2008, 02:41 AM
Tony A
Sam,

As "tongue in cheek" as your comments are, you have to realise that you are the one requiring assistance and very rarely is it the top posters here that ask for assistance.

If I look through the member directory sorted by "highest karma", of the top ten listed I have met all but one or two, and I know that each one has 15 - 20 (or more years) experience of the FOCUS / WebFOCUS product group. They use it every day of their working lives but still find time to help those who will help themselves. Not because they might "lose their form", but because they have experience on how to get the best from the product. I don't think they're worried, do you?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 30, 2008, 12:29 PM
ihf
FOCUZSAMBIT:
Never bite the hand that feeds you is what I always had been taught. This will assist you , but listen to Frank, Tony, Leah, Jgelona and others. Their suggestions are not made offhandedly but rather with patience and diligence. They are steering you correctly.
Hope this helps for now:

SET DEFCENT = '20'
DEFINE FILE CAR
CURRDAY/MDYY='&MDY';
CURRWKDAY/WTR = CURRDAY;
END
TABLE FILE CAR
PRINT CURRDAY CURRWKDAY
BY COUNTRY
END
Ira
wf 538 aix 533
January 30, 2008, 12:42 PM
ihf
-SET &DOWK = &YMD ;
-TYPE &DOWK
Ira aix 533 wf 538
January 30, 2008, 12:51 PM
Tony A
ihf,

Very close, but if only it were that easy - try this instead
-SET &DOWK = DOWK(&YYMD, 'A3');
-TYPE &DOWK
SET DEFCENT = '20'
DEFINE FILE GGSALES
CURRWKDAY/A3 = DOWK(DATE, 'A3');
END
TABLE FILE GGSALES 
PRINT CURRWKDAY
BY REGION 
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 30, 2008, 01:18 PM
Anatess
Figured this is the best thread to tell you that I've all of a sudden become Platinum and I can't bring myself to own that karma unless I have answered, if not as much, then at least close, as I've asked. But then, I think it is quite obvious that my answers are not as "deep" as the Virtuosos out here, but hey, I try. One of these days somebody will drop a Summit and plane tickets on my lap and then I will get to meet you guys!

And here I go wasting my post count... sigh.


WF 8.1.05 Windows
January 31, 2008, 03:08 AM
Tony A
Well done Anatess, and also Leah who is now a Virtuoso!!

T
January 31, 2008, 09:24 AM
Glenda
Sam,

I once had a boss tell me that the manuals were being worn out from so much use. Actually, he was being facetious. But he had a good point. Sometimes it is easier to ask for the answer than to research the answer.

That was 20+ years ago and I have since found that I retain the answers better if I actually look them up myself.

I too was directed to the book "(Almost) 1001 Ways to Work with DATES in WebFOCUS". It was indeed one of the best purchases I made in 2007. It cost me less than a night out (and a few calories that didn't make it to my hips Big Grin).

Remember, everyone like to help those who try to help themselves.

Many thanks to all of you here for all the inspiration. Even those of you who ask questions. Some of your questions have made me think of new ways to accomplish something.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
February 05, 2008, 01:38 AM
focuzsambit
i don't recall why..but thought its full time job...


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
February 05, 2008, 09:45 AM
PBrightwell
The Information Builders Helpdesk (Tech Support) are full time employees, we are users in different companies.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes