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] Combine Variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Combine Variables
 Login/Join
 
Member
posted
Hey all,

Sorry for the very simple question but I wasn't able to find anything through searching. I have two date variables residing in different data sets and want to combine the two variables into one variable.

Here is the exact situation. I have the Job Start Date of employees in two different databases. One database covers data from 2011 and prior, and the other covers 2012 and onward. I have joined the two databases based on the employee ID. Now I want to combine the two Job Start Date variables into a single, new variable so I can display the job start date in one column instead of needing two separate columns.

I've tried using Job_Start_Date_Old U Job_Start_Date_New but this give me an error saying "(FOC224) SYNTAX ERROR: U(IA_190306_154527-1)". Both variables are in MDY format so I'm not sure what's going wrong.


Thanks!

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 6 | Registered: February 25, 2019Report This Post
Gold member
posted Hide Post
Hi,
If both the tables are identical and you want to merg the data then use MORE (Union All) instead of join and that should solve your problem.

If the empolyees in both the tables are same (i.e. Inner Join) then just refer one of the field.

othewise you can create a DEFINE field something like this;

  
DEFINE FILE [TABLE NAME]
COMBINE_JOINING_DATE/MDY = IF Job_Start_Date_Old IS MISSING THEN Job_Start_Date_New ELSE Job_Start_Date_Old ;
END

TABLE FILE [TABLE NAME]
YOUR CODE
COMBINE_JOINING_DATE
END



WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Report 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] Combine Variables

Copyright © 1996-2020 Information Builders