Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] converting a6ymd from 20 century to 19 century

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] converting a6ymd from 20 century to 19 century
 Login/Join
 
Silver Member
posted
Hello,
I have a DATE1 (date field a6ymd) in master file.
when SET DEFCENT=20
DEFINE FILE ...
DATELG/YYMD = DATE1;
END

DATELG displays 20961001 but I need to update/modify DATE1 OR DATELG to 19961001.

can you let me know what is the best course to modify a6ymd date1?

This message has been edited. Last edited by: Kerry,
 
Posts: 36 | Registered: October 01, 2003Report This Post
Guru
posted Hide Post
The function DATEADD comes to mind; you could use it to subtract 100 years from DATELG.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Silver Member
posted Hide Post
thanks, I guess the issue I am having is that I need to update DATE1 which is a6ymd (master file) with DATELG/YYMD='19961001';
The modify does not seem to update

what would be the modify coding to update DATE1 which is A6YMD?
I have tried:
MODIFY FILE ..
COMPUTE
DATELG/YYMD=;
ON MATCH COMPUTE
DATE1= DATELG;
ON MATCH CONTINUE
ON MATCH UPDATE DATE1

DATELG still shows 20961001. It did not modify.

sorry I am not good with date conversion
 
Posts: 36 | Registered: October 01, 2003Report This Post
Virtuoso
posted Hide Post
DEFCENT is usually used in conjunction with YRTHRESH (ex. DEFCENT=19, YRTHRESH=60). But your MODIFY logic may also be part of the problem.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Guru
posted Hide Post
Additionally, if the master file describes DATE1 as A6YMD then there is no way that I know of to represent CC, the century, in that field; ie A8YYMD.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Master
posted Hide Post
quote:
MODIFY FILE ..
COMPUTE
DATELG/YYMD=;
ON MATCH COMPUTE
DATE1= DATELG;
ON MATCH CONTINUE
ON MATCH UPDATE DATE1


Is that your whole MODIFY ?
You don't show a MATCH field-x before the ON MATCH
And you have set DATELG to a null value and subsequently DATE1 to DATELG

It seems to me it should be something like:

MODIFY FILE WHATEVER
FIXFORM keyfield/xx datefield/xx etc.
MATCH keyfield
ON NOMATCH REJECT
ON MATCH UPDATE datefield
DATA ON datafile
END 


I've assumed a fixed format data file but it could be a hold file, comma-delimited, etc.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
<JG>
posted
quote:
20 century to 19 century

1899 was the last year of the 19th Century.

One assumes you mean 21st to 20th.

The default for DEFCENT is 19 i.e. 20th century, why change it unless you need dates more than 112 years ago.

Post the full modify and we may have a chance of helping.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] converting a6ymd from 20 century to 19 century

Copyright © 1996-2020 Information Builders