IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    formatting an across field
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
Hi,

I'm fairly new in the world of Webfocus , and i have the following problem :

I have a database field date of birth and i want to do an across on it by year , is there anyway to do this ?

the field has a standard date format but i want to across on the YY format

Peter
 
Posts: 204 | Registered: February 25, 2005Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Peter-
Yes there is a way to do this in WebFOCUS.
Extract the year portion of the standard date into a what FOCUS terms a virtual field. In this instance a DEFINE is suggested.
DEFINE MYFILE
ACROSSYY/YY = DOB;
END
TABLE FILE MYFILE
PRINT STUFF
ACROSS ACROSSYY
BY SOMEOTHER
END
This should get you started.
 
Posts: 152 | Location: USA | Registered: April 15, 2003Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Thanks Jim !!

I played with your solution a bit , and when i tried

HNAME(DOB 'YEAR', 'A4') in define , it works !!

Thanks for enabling me to sleep tonight Smiler

Peter
 
Posts: 204 | Registered: February 25, 2005Reply 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    formatting an across field

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