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     [SOLVED] WHERE 'IN FILE' PROBLEM

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WHERE 'IN FILE' PROBLEM
 Login/Join
 
Member
posted
I'm attempting to get values from the UNILEVELTREEHISTORY table based on a list of customerids created in the hold file V1, using 'IN FILE'. I keep getting ERROR (FOC006), THE FORMAT OF THE TEST VALUE IS INCONSISTENT WITH FIELD FORMAT: My code is below:

-SET &ECHO=ALL;
SET EMPTYREPORT=ON
SET ASNAMES=ON


TABLE FILE COMMISSIONUNILEVELTREE
PRINT
CUSTOMERID
WHERE CUSTOMERID EQ 1450316;
ON TABLE HOLD AS V1
END
-RUN


TABLE FILE UNILEVELTREEHISTORY
PRINT
UNILEVELTREEHISTORYID
CUSTOMERID
MOVEDATE
PREVIOUSSPONSORID
WHERE CUSTOMERID IN FILE V1;
END
-RUN

Any tips on what I'm missing? Thanks

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 13 | Registered: August 28, 2019Report This Post
Virtuoso
posted Hide Post
ModGuy31

Try ON TABLE HOLD AS V1 FORMAT ALPHA


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
Thank you Chuck. That did it.
 
Posts: 13 | Registered: August 28, 2019Report This Post
Master
posted Hide Post
If all the only way you are going to use V1 is in the where clause, you can use ON TABLE SAVE AS V1. This will not create a master and it will automatically be ALPHA format.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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     [SOLVED] WHERE 'IN FILE' PROBLEM

Copyright © 1996-2020 Information Builders