Focal Point
[CLOSED] FOCERRNUM not capturing FOC198

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3877034766

February 21, 2014, 10:45 AM
Kamesh
[CLOSED] FOCERRNUM not capturing FOC198
Hi,

We are getting FOC198 error due to FOCSORT limitation issue. We are trying to capture that error to show some error message to user to limit their records. But when I add the code
-IF &FOCERRNUM NE 0 THEN GOTO PGM_ERR;

It is not getting passed to the routine. How can I capture the fatal error if FOCERRNUM is not working?

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WFConsultant

WF 8105M on Win7/Tomcat
February 22, 2014, 10:17 PM
njsden
It's strange that &FOCERRNUM is not capturing the last FOCERR being triggered. Did you add -RUN right before testing the variable?

In any case, you can also check the &IORETURN variable which has a value <> 0 when the last IO operation failed.

TABLE FILE ..
...
END
-RUN
-TYPE IORETURN  = &IORETURN
-TYPE FOCERRNUM = &FOCERRNUM


You can then control the error condition when either of those variables has a non-zero value.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
February 24, 2014, 11:07 AM
Kamesh
It is not getting in to that line at all. It breaks input the FOCSORT once it reaches the 2GB limit.


WFConsultant

WF 8105M on Win7/Tomcat
February 24, 2014, 11:27 AM
Ram Prasad E
Are you using SQL Pass Thru or Master File retrieval? Looks like you bring large volume of data to WebFOCUS and perform sort operation.

If SQL Pass thru, then after SQLOUT hold file creation, you should get &IORETURN or &LINES.

If you are having this issue with Master File, then check view source to see if the Aggregation Done in the SQL created by WebFOCUS. Try TABLE FILE hold without any BY fields.

Hope this helps.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/