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] Focus Errors (FOC428) and (FOC1341)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Focus Errors (FOC428) and (FOC1341)
 Login/Join
 
Gold member
posted
Hi,

I am getting the errors with several of the last 2:

(FOC1341) Error in writing seq. file : @0000004
and

(FOC428)TRANS 11 REJECTED FORMAT COL 9 FLD MC_TEMP

(FOC428)TRANS 14 REJECTED FORMAT COL 9 FLD RESTRICT_M_COUNT

I have tested the code in DevStudio/Webfocus before moving it to mainframe focus and it works fine, the errors only occur when run with mainframe character focus (sorry if my terminology is a bit off).

Can someone possibly spot something wrong in my code that would?

quote:

TABLE FILE MHTPAR
SUM
MAX.PARCGRADE
BY PARCODE
WHERE RECORDLIMIT IS 500
ON TABLE HOLD AS HPROP
END


JOIN CLEAR *
JOIN PARCODE IN HPROP TO ALL PARCODE IN MHTPEV AS JPEVAPPR
JOIN PARCODE IN HPROP TO PARCODE IN MHTPNA AS JPNAPPR
END

DEFINE FILE HPROP
TODAY/DMYY = &DMYY;
DATER/DMYY = DATEADD(TODAY,'D',-365);
APPR_COUNT_TEMP/I6 = IF PEVDATE_RAIS GE DATER
AND PETCODE IN ('CY' 'CS' 'CX' 'CH')
AND PEVAMOUNT LE 10000 THEN 1 ELSE 0;
MC_TEMP/I5 = IF PETCODE EQ 'CS' THEN 1 ELSE 0;
GROUP/I9 = PARGROUP_NUMBER;
END

TABLE FILE HPROP
SUM
APPR_COUNT_TEMP
BY GROUP
BY PARCODE
WHERE APPR_COUNT_TEMP EQ 1
ON TABLE HOLD AS HAPPR_COUNT1
END

TABLE FILE HPROP
SUM
MC_TEMP
BY PARCODE
BY HIGHEST 1 PEVCODE NOPRINT
BY GROUP
WHERE PETCODE IN ('CM' 'CN' 'CY' 'CS' 'CX' 'CH' 'CW')
ON TABLE HOLD AS HMAX_CRED1 FORMAT FOCUS INDEX GROUP
END

TABLE FILE HAPPR_COUNT1
SUM
APPR_COUNT_TEMP
BY GROUP
WHERE GROUP GT 0
ON TABLE HOLD AS HAPPR_COUNT2
END

JOIN CLEAR *
JOIN GROUP IN HAPPR_COUNT1 TO GROUP IN HAPPR_COUNT2 AS JPNAPPR2
END

DEFINE FILE HAPPR_COUNT1
APPR_COUNT/I8 =IF HAPPR_COUNT2.APPR_COUNT_TEMP EQ 0 THEN
HAPPR_COUNT1.APPR_COUNT_TEMP
ELSE HAPPR_COUNT2.APPR_COUNT_TEMP;
END

TABLE FILE HAPPR_COUNT1
PRINT
APPR_COUNT
BY PARCODE
ON TABLE HOLD AS HAPPR_COUNT FORMAT FOCUS INDEX PARCODE
END

TABLE FILE HMAX_CRED1
SUM
MC_TEMP
BY GROUP
WHERE GROUP GT 0
ON TABLE HOLD AS HMAX_CRED2 FORMAT FOCUS INDEX GROUP
END

JOIN CLEAR *
JOIN GROUP IN HMAX_CRED1 TO GROUP IN HMAX_CRED2 AS JMAXCRED

DEFINE FILE HMAX_CRED1
MC_TEMP2/I5 =IF HMAX_CRED2.MC_TEMP EQ 0 THEN HMAX_CRED1.MC_TEMP
ELSE HMAX_CRED2.MC_TEMP;
MAX_CRED/A1 = IF MC_TEMP2 EQ 1 THEN 'Y' ELSE 'N';
END

TABLE FILE HMAX_CRED1
PRINT
MAX_CRED
BY PARCODE
ON TABLE HOLD AS HMAX_CRED FORMAT FOCUS INDEX PARCODE
END

JOIN CLEAR *
JOIN PARCODE IN HPROP TO PARCODE IN MHTBPU AS JBUS
JOIN PARCODE IN HPROP TO PARCODE IN MHTPNA AS JPNAREST

DEFINE FILE HPROP
RESTRICT_M_COUNT/I5 = IF TPUCODE EQ 'R' THEN 1 ELSE 0;
GROUP/I9 = PARGROUP_NUMBER;
END

TABLE FILE HPROP
PRINT
RESTRICT_M_COUNT
BY GROUP
BY PARCODE
ON TABLE HOLD AS HRESTRICT1
END

TABLE FILE HRESTRICT1
SUM
RESTRICT_M_COUNT
BY GROUP
WHERE GROUP GT 0
ON TABLE HOLD AS HRESTRICT2
END

JOIN CLEAR *
JOIN GROUP IN HRESTRICT1 TO GROUP IN HRESTRICT2 AS JPNAREST2


DEFINE FILE HRESTRICT1
RESTRICT_M/A1 = IF HRESTRICT2.RESTRICT_M_COUNT GT 0
OR HRESTRICT1.RESTRICT_M_COUNT GT 0 THEN 'Y' ELSE 'N';
END

TABLE FILE HRESTRICT1
PRINT
RESTRICT_M
BY PARCODE
ON TABLE HOLD AS HRESTRICT FORMAT FOCUS INDEX PARCODE
END



Thanks.

This message has been edited. Last edited by: Jinx,


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 2008Report This Post
Virtuoso
posted Hide Post
Jinx,

Apparently this is happening in a HOLD FORMAT FOCUS command.

I would put -RUN after each TABLE request to find out where the error occurs.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
The error message 1341 might mean that the file(s) to which you are writing are not allocated yet. This is a big difference with working on mainframe, on pc everything is done automatically for you, on mainframe you have to explicitly define your files.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Thanks Daniel, will try what you suggested and go from there.

GamP, I'm new to mainframe focus so will have to work things out as I go along.

J.


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 2008Report This Post
Gold member
posted Hide Post
Solved the problem - Found that the one join name had more than 8 characters in it, Doh!
quote:
JOIN CLEAR *
JOIN GROUP IN HRESTRICT1 TO GROUP IN HRESTRICT2 AS JPNAREST2




Thanks.

J.


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 2008Report 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] Focus Errors (FOC428) and (FOC1341)

Copyright © 1996-2020 Information Builders