Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] WHERE 'IN FILE' PROBLEM
Go
New
Search
Notify
Tools
Reply
  
[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: 12 | Registered: August 28, 2019Reply With QuoteReport 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: 1694 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Member
posted Hide Post
Thank you Chuck. That did it.
 
Posts: 12 | Registered: August 28, 2019Reply With QuoteReport 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: 942 | Location: Oklahoma City | Registered: October 27, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] WHERE 'IN FILE' PROBLEM

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