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     Hold files in WHERE STATEMENTS and FOC038 error

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Hold files in WHERE STATEMENTS and FOC038 error
 Login/Join
 
Gold member
posted
I have beeen using the following discussion thread to try and use the values in a HOLD file as criteria for a report.
https://forums.informationbuilders.com/eve/forums/a/tpc/...001036132#7001036132

But I keep getting this error: (FOC038) THE EXTERNAL FILE DOES NOT CONTAIN ANY TEST LITERALS: HOLD

MY code looks like this:

TABLE FILE ACCTS
SUM CNT_NEW_ACCTS
BY CUST_ID
WHERE TOTAL ( CNT_NEW_ACCTS EQ 0 );
ON TABLE HOLD FORMAT ALPHA
END

TABLE FILE ACCTS
PRINT
CUST_ID
ACCT_NBR
WHERE (CUST_ID IN FILE HOLD);
ON TABLE PCHOLD FORMAT EXL2K
END


Thank you, Robert


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 93 | Registered: February 20, 2008Report This Post
Virtuoso
posted Hide Post
Do you actual have a store area for hold (FILEDEF). The big issue is if you want to use 'where .. in file) what is in the 'in file' can only be one column.

Not knowing your database, it would seem that if you took your code, changed the 'ON TABLE HOLD FORMAT ALPHA' to 'ON TABLE HOLD AS NEWACCTS' (JUST AN EXAMPLE NAME) then

JOIN CUST_ID IN NEWACCTS TO ALL CUST_ID IN ACCTS AS J1
TABLE FILE NEWACCTS....

This of course persumes that the CUST_ID is a keY in ACCTS.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
Try the following to get a clean file to use in the subsequent WHERE clause.

SET HOLDLIST=PRINTONLY

TABLE FILE ACCTS
SUM CNT_NEW_ACCTS NOPRINT
BY CUST_ID
WHERE TOTAL ( CNT_NEW_ACCTS EQ 0 );
ON TABLE SAVE FORMAT ALPHA
END

TABLE FILE ACCTS
PRINT
CUST_ID
ACCT_NBR
WHERE (CUST_ID IN FILE HOLD);
ON TABLE PCHOLD FORMAT EXL2K
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Of course you can do this all in one request:

TABLE FILE ACCTS
SUM CNT_NEW_ACCTS NOPRINT
BY CUST_ID
PRINT ACCT_NBR
BY CUST_ID
WHERE TOTAL ( CNT_NEW_ACCTS EQ 0 );
ON TABLE PCHOLD FORMAT EXL2K
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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     Hold files in WHERE STATEMENTS and FOC038 error

Copyright © 1996-2020 Information Builders