Focal Point
Batch focus FOC2599 / FOC2590

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

March 26, 2008, 04:55 PM
JackieInLR
Batch focus FOC2599 / FOC2590
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
March 26, 2008, 05:08 PM
Francis Mariani
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
March 26, 2008, 05:19 PM
JackieInLR
....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
March 26, 2008, 05:37 PM
Francis Mariani
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
March 26, 2008, 05:42 PM
Francis Mariani
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
March 26, 2008, 05:59 PM
JackieInLR
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
March 26, 2008, 06:01 PM
JackieInLR
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
March 26, 2008, 06:09 PM
GinnyJakes
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
March 26, 2008, 06:10 PM
Francis Mariani
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
March 27, 2008, 09:57 AM
JackieInLR
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
March 27, 2008, 10:04 AM
Francis Mariani
"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
March 28, 2008, 04:42 AM
souji
Thanks Prarie it works fine.


WebFocus 7.1.4 xp html,excel,pdf