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     DB2 Date Extraction Question.....

Read-Only Read-Only Topic
Go
Search
Notify
Tools
DB2 Date Extraction Question.....
 Login/Join
 
Member
posted
Could someone point me to the documentation that will help me extract the year from a DB2 'DATE'? (Focus 7.2.6 - MVS)

The date is defined as:

RI_BEGIN_DATE DATE NOT NULL,
RI-BEGIN-DATE PIC X(10).

I want to use only the year from the above field. I thought I had done this before, but just can't find my example.

Thanks,
Jackie
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
Jackie,

What is the definition in your .mas file?

If it is YYMD, or the like, then you should be able to use the year within a define or display by specifying -

PRINT RI_BEGIN_DATE/YY

for the full four digit year

Depending on other actual and usage formats in you .mas there will be other solutions.
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     DB2 Date Extraction Question.....

Copyright © 1996-2020 Information Builders