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     [CASE OPENED] (FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE OPENED] (FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED
 Login/Join
 
Gold member
posted
hi ,

I am getting below errors in code . if someone can help me. Thanks
in advance.

(FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED
0 ERROR AT OR NEAR LINE 250 IN PROCEDURE bltx02_summary_29948
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: PRE_CNTY
0 ERROR AT OR NEAR LINE 253 IN PROCEDURE bltx02_summary_29948
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: PRE_CNTY
BYPASSING TO END OF COMMAND
(FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Expert
posted Hide Post
Please remember to do your searches first, especially for something like this.

It has been asked and answered many times in the past and the information given in those posts is still as relevant now as it was then Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
 MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
RUN
FILE HOLD
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD NEW
END
-RUN
-*
JOIN
 SUB_CODE IN HOLD
TO
 MARKET_CODE IN TXTMKT AS JMAK
END
-RUN 


The Hold file you're creating AFTER MATCH isn't sorted by SUB_CODE.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
First I would change for this :
MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
RUN
FILE HOLD
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD AS MRGFILE NEW
END


Then add the following before the JOIN
TABLE FILE MRGFILE
PRINT STATE_NAME
      STT_CHR
      GEO_CODE
      TAX_AUTH
      TAX_TYPE
      CRE_AMT
      CREDIT_AMT 
      TAX_CATE
      RATE
      SUB_MARKET_CD
      TAX_AMT 
      TAX_SRV_CTG
      TAX_SRV_TYPE
BY SUB_CODE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
ON TABLE HOLD MRGIDX
END
-RUN

JOIN
 SUB_CODE IN MRGIDX
TO
 MARKET_CODE IN TXTMKT AS JMAK
END
-RUN
DEFINE FILE MRGIDX
STT_CNTY/A5=STT_CHR ;
END
-RUN
-*
TABLE FILE MRGIDX
...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
quote:

(FOC002) A WORD IS NOT RECOGNIZED: as

You probably have a lowercase "as" somewhere. Focus is case sensitive.

Must be :
ON TABLE HOLD AS MRGIDX


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
quote:
(FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED


The result of your code is ORDERED by
1- STA_CODE
2- GEO_CODE
3- TAX_AUTH
4- TAX_TYPE
5- SUB_CODE
So SUB_CODE is the last one which can make the field "OUT of SEQUENCE" due to previous order combination in other BY fields.

MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
RUN
FILE HOLD
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
BY SUB_CODE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD NEW
END
-RUN
-*
JOIN
 SUB_CODE IN HOLD
TO
 MARKET_CODE IN TXTMKT AS JMAK
END
-RUN
-*


When you use several MATCH as you did, I suggest to use the "AFTER MATCH HOLD AS aFileName NEW" instead of only "AFTER MATCH HOLD NEW".
That way no confusion between several HOLD file. You will know exactly which HOLD file you are using.
Then, since you need to MATCH on STA_CODE, then use another step to order by SUB_CODE before your JOIN as I stated previously.

TABLE FILE MRGFILE
PRINT STATE_NAME
      STT_CHR
      GEO_CODE
      TAX_AUTH
      TAX_TYPE
      CRE_AMT
      CREDIT_AMT
      TAX_CATE
      RATE
      SUB_MARKET_CD
      TAX_AMT
      TAX_SRV_CTG
      TAX_SRV_TYPE
BY SUB_CODE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
ON TABLE HOLD AS MRGIDX
END
-RUN


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
quote:
AFTER MATCH HOLD AS OLD-OR-NEW


quote:
AFTER MATCH HOLD AS NEW


You haven't changed your code as I specified.

After the AS, you need to put a file's name such as below and use that file's name :
...
AFTER MATCH HOLD AS MRGFILE_A OLD-OR-NEW
END
-RUN
-*
MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
-RUN
FILE MRGFILE_A
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD AS MRGFILE NEW
END
-RUN
-*
-* Start change
TABLE FILE MRGFILE
PRINT STATE_NAME
      STT_CHR
      GEO_CODE
      TAX_AUTH
      TAX_TYPE
      CRE_AMT
      CREDIT_AMT
      TAX_CATE
      RATE
      SUB_MARKET_CD
      TAX_AMT
      TAX_SRV_CTG
      TAX_SRV_TYPE
BY SUB_CODE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
ON TABLE HOLD AS MRGIDX
END
-RUN
-* End change
JOIN
 SUB_CODE IN MRGIDX
TO
 MARKET_CODE IN TXTMKT AS JMAK
END
-RUN
-*
DEFINE FILE MRGIDX
STT_CNTY/A5=STT_CHR ;
END
-RUN
-*
TABLE FILE MRGIDX
...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
Instead of trying to run to whole thing, run it step by step and fix errors one by one.

After each step add the following to test if the hold file exist and its content.

-* Where <file name> is the file's name created in previous step. Per example MRGFILE_A
TABLE FILE <file name>
PRINT *
END
-RUN
-EXIT


If you can't figure how to do it, then contact IB Support


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
(FOC1517) UNRECOGNIZED COMMAND FILE HOLD

Here's where your trouble starts:
MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
-RUN            <==== This should be "RUN", not "-RUN"
FILE HOLD
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD AS NEW
END
-RUN
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
Genius,
quote:
-SET TODATE=FGETENV(7,'TO_DATE',8,'YYYYMMDD');

I just realized that you have a lot of -SET such as above that are missing the amper (&).
Do you know that the result of this is giving nothing ?

And as for
quote:

(FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED


We are back to the same error for which we already answered : SUB_CODE is not in the BY fields (and I suggested to have it as the first BY from another step after the MATCH and BEFORE the JOIN)
MATCH FILE TAXSTAPD
SUM STATE_NAME STT_CHR
BY STA_CODE
RUN
FILE HOLD
PRINT GEO_CODE TAX_AUTH TAX_TYPE CRE_AMT CREDIT_AMT 
SUB_CODE 
TAX_CATE RATE SUB_MARKET_CD TAX_AMT 
TAX_SRV_CTG TAX_SRV_TYPE
BY STA_CODE
BY GEO_CODE
BY TAX_AUTH
BY TAX_TYPE
WHERE (TAX_AUTH NE 0) AND (TAX_TYPE NE 0)
AFTER MATCH HOLD NEW
END
-RUN
-*
JOIN
 SUB_CODE IN HOLD
TO
 MARKET_CODE IN TXTMKT AS JMAK
END
-RUN


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
Your problem is in this line. What do you want to do after match?

 AFTER MATCH MRGFILE_A FORMAT FOCUS INDEX NEW 

Has this code ever worked? It seems like you're debugging someone's very complex application. There are some basic techniques that you have to apply before we can effectively help you. For instance, when you have code like this, you ought to take advantage of -EXIT and -TYPE and ECHO=ALL so you can see what is triggering the errors one step at a time. If you aren't familiar with these syntax, you ought to start reading up on Dialogue Manager in the documentation first.
  


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
"Genious",

You have so many invalid code (such as -SET without an ampersand (&) and "AFTER MATCH MRGFILE_A FORMAT FOCUS INDEX NEW", to give a few...) and not able to follow provided sample/suggestion/steps that you MUST contact IB Support.

We're in a loop trying to help.
I stop trying to help you. Sorry


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
Hi..

Sorry for all the trouble. but i have been trying many thing to resolve the issue.
I tried contacting IB support but could not.
Can u please suggest me how can I contact IB as this is the first time i will be contacting them.


Thanks a lot for all your help. and sorry for trouble.


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Virtuoso
posted Hide Post
Genius

Go to http://techsupport.informationbuilders.com and click on case management. It will ask you to sign in so since this is your first case you will have to create an account. This requires you know your site code.


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
Gold member
posted Hide Post
Hi chuck,

From where will i get site code??


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Virtuoso
posted Hide Post
Hi Genius

You will need to ask your manager or contact your local IBI rep.


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
Gold member
posted Hide Post
Thanks for help chuck.


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report 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     [CASE OPENED] (FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED

Copyright © 1996-2020 Information Builders