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     Batch focus FOC2599 / FOC2590

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Batch focus FOC2599 / FOC2590
 Login/Join
 
Member
posted
Could someone please help with the following error:

FOCUS 7.3.3 14.50.02 03/26/2008 FOCUSPGM LINE 9 18.02

TABLE FILE FREESHPT
PRINT *
END
(FOC2590) AGGREGATION NOT DONE FOR THE FOLLOWING REASON:
(FOC2594) AGGREGATION IS NOT APPLICABLE TO THE VERB USED
SELECT T1."",T1."",T1."",T1."",T1."",T1."",T1."" FROM
JACKIE.FREESHIP T1 FOR FETCH ONLY;
(FOC1400) SQLCODE IS -104 (HEX: FFFFFF98) XOPEN: 42000
(FOC1406) SQL OPEN CURSOR ERROR. : FREESHPT

MFD:

SEGNAME=FREESHPT, TABLENAME=JACKIE.FREESHIP, KEYS=0, $

FILENAME=FREESHPT, SUFFIX=DB2 , $
SEGMENT=FREESHPT, SEGTYPE=S0, $
FIELDNAME=ORDER_ID, USAGE=P11, ACTUAL=P6, $
FIELDNAME=PRODUCT_TOTAL, USAGE=P22.5, ACTUAL=P11, MISSING=ON,$
FIELDNAME=SHIPPING_TOTAL, USAGE=P22.5, ACTUAL=P11, MISSING=ON,$
FIELDNAME=SHIPPING_ADJUSTMENT, USAGE=P22.5, ACTUAL=P11, MISSING=ON,$
FIELDNAME=CARD_TYPE, USAGE=A4, ACTUAL=A4, MISSING=ON,$
FIELDNAME=DATE_ORDERED, USAGE=YYMD, ACTUAL=DATE, MISSING=ON,$
FIELDNAME=TIME_ORDERED, USAGE=HHIS, ACTUAL=HHIS, MISSING=ON,$

Thanks,
Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
Jackie In L.R.,

There is no error, nothing to worry about - they're warning messages generated by the SQL Tracing commands that must be active for your program.

Your PRINT statement gets translated to a SQL SELECT statement without a GROUP BY. If you had a SUM, it would get translated to a SQL SELECT statement with a GROUP BY.

Cheers,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
....but I am getting a -104 SQL code, and am not getting any output....?? I added the tracing stmts to try to figure out why I was getting the -104.

Thanks for your help Francis.

Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
Jackie,

Sorry about that, I didn't notice the -104 error.

Did you type the Master or was it generated by the WebFOCUS synonym generator?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
There's something wrong with the Master, you don't have the database table column name alias tag. Something like this:

FILE=BASEL_AC_APPL_FORM, SUFFIX=DB2     ,$                                      
SEGNAME=BASEL_AC_APPL_FORM,                                                     
SEGTYPE=S0 ,$                                                                   
FIELD=APPL_DIM_KEY                        ,APPL_DIM_KEY,                        
I11         ,I4          ,MISSING=OFF,$                                         
FIELD=AC_PROP_INS_CD                      ,AC_PROP_INS_CD,                      
A10         ,A10         ,MISSING=OFF,$                                         

FIELD is the WebFOCUS field name and can be anything, but is usually the database table column name.

The second mention of the field name is the ALIAS or database table column name and has to exactly match the database table.

The SQL generated by WebFOCUS does not specify the database column names:

SELECT T1."",T1."",T1."",T1."",T1."",T1."",T1."" FROM JACKIE.FREESHIP T1 FOR FETCH ONLY; 

because the Master does not have the ALIAS mentioned. Your Master should look something like this:

FILENAME=FREESHPT, SUFFIX=DB2 , $
SEGMENT=FREESHPT, SEGTYPE=S0, $
FIELDNAME=ORDER_ID, ORDER_ID, USAGE=P11, ACTUAL=P6, $
FIELDNAME=PRODUCT_TOTAL, PRODUCT_TOTAL, USAGE=P22.5, ACTUAL=P11, MISSING=ON,$


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks so much for taking the time to look at this. I figured it had something to do with the MFD, but was confused. The original MFD was created by WebFocus synonym generator, then I tried to make it more readable. I have now learned my lesson, leave well enough alone!

I have regenerated the MFD, and the procedure seems to be working. I am especially proud of this one as it is calling a Cobol program which is then calling a DB2 stored procedure.

Thanks again,
Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Member
posted Hide Post
P.S. I thought the alias was optional in the MFD. I've learned several things today!

Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
Jackie,

The alias is only optional for non-relational masters. For relational masters, as Francis said, the alias is used to construct the SQL statement. And masters generated by the synonym generator or from the Web Console should NEVER be modified by hand. As you found out, this could generate a world of hurt.

Also please update your signature with your product suite, releases, and platforms. That allows us to adjust our answers based on what release you are running.

And since you are doing COBOL to DB2, there is a recent post about executing a 3GL from WebFOCUS. Maybe you could offer the guy a suggestion that would work for him. The post is fairly new. Check it out.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
Jackie,

I never touch the Master after it has been generated.

By the way, we would appreciate you updating your forum signature, available here:

View/Edit Complete Profile

"Please fill out your WebFOCUS release, OS/Platform, and expected Output format(s)"

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Will do....I haven't posted in years and didn't check my signature.

Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
"I haven't posted in years"? You'll soon learn you can't live without FocalPoint!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
Thanks Prarie it works fine.


WebFocus 7.1.4 xp html,excel,pdf
 
Posts: 44 | Registered: February 27, 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     Batch focus FOC2599 / FOC2590

Copyright © 1996-2020 Information Builders