IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Date Format
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Gold member
Posted
I need today's date in Alpha form. I am using the below function but its returning 04/11/2007. I want April, 11, 2007. Any ideas?
And it has to be alphanumeric!

DATE/A12=TODAY(DATE);


tbj


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

-SET &TODAY_DT = DATETRAN(DATECVT(&YYMD, 'I8YYMD', 'DMYY'), '(MDYY)', '(trD)', 'EN', 20, 'A20') ;

For a DEFINE

TODAY_DT/A20 = DATETRAN(DATECVT(&YYMD, 'I8YYMD', 'DMYY'), '(MDYY)', '(trD)', 'EN', 20, 'A20') ;

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
0 ERROR AT OR NEAR LINE 6 IN PROCEDURE mrheaderFOCEXEC *
(FOC295) A VALUE IS MISSING FOR: &TODAY_DT


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

Make sure there is a comma after &YYMD, I copied incorrectly...


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
I do have the comma.


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

This works fine here at UNCG. I just ran it. Paste your fex in and I will BOLD the code.

-SET &TODAY_DT = DATETRAN(DATECVT(20070411, 'I8YYMD', 'DMYY'), '(MDYY)', '(trD)', 'EN', 20, 'A20') ;
-TYPE April 11, 2007
April 11, 2007
-EXIT


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Smiler thanks!


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

I know you know, that I know, that you know, etc...

-SET PAGE=NOLEAD

s/b

SET PAGE=NOLEAD

Not a Dialogue Manager command, take the dash out, and, all is well...


Also, down in your last DEFINE:

TODAY_DT/A20 = DATETRAN(DATECVT(&YYMD, 'I8YYMD', 'DMYY'), '(MDYY)', '(trD)', 'EN', 20, 'A20') ;

Tom


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Its asking me to input the YYMM. I don't want to do that

I am across the way at A&T by the way!

tbj


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Very good, with Greensboro in your signature, I thought you were here...
I started consulting last year @ UNCG and they have called me back for Banner HR conversion. Lots of fun!!!


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

&YYMD not &YYMM...


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
It finally worked....Thanks again! Boooo Spartans!


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
BaddaBing!!!

BTW, I'm not a Spartan fan, my family has had season tickets, since 1933, on the 48 yrad-line of another college that I attended.

Last year, I had the Michigan game(UGH!!), this year Boston College:

Rally sons of Notre Dame:
Sing her glory and sound her fame,
Raise her Gold and Blue
And cheer with voices true:
Rah, rah, for Notre Dame
We will fight in ev-ry game,
Strong of heart and true to her name
We will ne'er forget her
And will cheer her ever
Loyal to Notre Dame

Cheer, cheer for old Notre Dame,
Wake up the echoes cheering her name,
Send a volley cheer on high,
Shake down the thunder from the sky.
What though the odds be great or small
Old Notre Dame will win over all,
While her loyal sons are marching
Onward to victory.

Go IRISH!!!

Go Charlie!!!


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Well atleast you have the colors right! Blue and Gold! Go Aggies!


Tracie
Prod WF 7.6,Test WF 7.6, XP Platform, Oracle 10g
 
Posts: 86 | Location: Greensboro, NC | Registered: October 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tracie,

Much simpler;
DATE/A20='&DATEMtrDYY';


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Date Format

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.