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] variables being filtered to a No HTML, zero table output result

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] variables being filtered to a No HTML, zero table output result
 Login/Join
 
Gold member
posted
I am passing the values: schema, month and year thru from another focexe file. I did a type to see what value is being passed and does pass the correct values. However, when I do a recordlimit, readlimit, end exit, nothing displays when an individual schema is selected, I get a 0 tables 0 records. However, the "all" Schema does display a table.

-*********************************
-SET &MASTER_SCHEMA = &SCHEMA;
-SET &MASTER_MONTH = &MONTH;
-SET &MASTER_YEAR = &YEAR;
-*
-SET &strSCHEMA= IF &MASTER_SCHEMA EQ 'ALL' THEN ''
- ELSE 'WHERE USERNAME EQ ''&SCHEMA''';
-SET &strMONTH = IF &MONTH EQ 'ALL' THEN ''
- ELSE 'WHERE LOG_MONTH EQ ''&MONTH''';
-SET &strYEAR= IF &MASTER_YEAR EQ 'ALL' THEN ''
- ELSE 'WHERE LOG_YEAR EQ ''&YEAR''';
-*
-SET &ALLSCHEMA_SWITCH = IF &MASTER_SCHEMA EQ 'ALL' THEN 1 ELSE 0;
-SET &ALLMONTH_SWITCH = IF &MASTER_MONTH EQ 'ALL' THEN 1 ELSE 0;
-SET &ALLYEAR_SWITCH = IF &MASTER_YEAR EQ 'ALL' THEN 1 ELSE 0;
-*
-*
-****************************************
-*Values Below: 1 equals On; 0 equals off
-****************************************
-TYPE All schema: &ALLSCHEMA_SWITCH
-TYPE All Months: &ALLMONTH_SWITCH
-TYPE All Years: &ALLYEAR_SWITCH

-******Check values********
-TYPE All Schema: &strSCHEMA.EVAL
-*
-TYPE All Month: &strMONTH.EVAL
-*
-TYPE All Year: &strYEAR.EVAL
-**************************
-*
-*-******************************
-* From main table
-******************************


TABLE FILE EFIP_USER_AUDIT_METRICS

COUNT DST.USERNAME
-*
BY LOG_YEAR
BY LOG_MONTH
-*******
-* EVALUEAT THE SCHEMA VALUE
&strSCHEMA.EVAL
-* EVALUATE THE MONTH VALUE
&strMONTH.EVAL
-* EVALUATE THE YEAR VALUE
&strYEAR.EVAL
-*******
-* DONE EVALUATE
-*
WHERE RECORDLIMIT EQ 100
WHERE READLIMIT EQ 100
END
-EXIT

ON TABLE HOLD AS USR_DATA
END

-**********************

any thoughts?

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



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Silver Member
posted Hide Post
quote:
SET &strSCHEMA= IF &MASTER_SCHEMA EQ 'ALL' THEN ''
- ELSE 'WHERE USERNAME EQ ''&SCHEMA''';
-SET &strMONTH = IF &MONTH EQ 'ALL' THEN ''
- ELSE 'WHERE LOG_MONTH EQ ''&MONTH''';


How about doing the &SCHEMA.EVAL here to get the actual value of the &SCHEMA variable?


Brian Bollmann
Spartan Light Metal Products
WebFocus 7.6.4 / iSeries / WebSphere
 
Posts: 34 | Registered: May 09, 2008Report This Post
Gold member
posted Hide Post
I tried doing that well, but no such luck



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Expert
posted Hide Post
READLIMIT and RECORDLIMIT do two different things.

READLIMIT reads physical records and if you don't get a hit in the first 100, you will get zero rows.

RECORDLIMIT passes the first 100 to match the screening conditions.

You have both in your request. To get rows, I'd remove the READLIMIT. You don't need both.


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
Gold member
posted Hide Post
I removed the readlimit and I changed the recordlimit to a 1000, then 10,000 just to be sure...haha....but still no such luck.



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Expert
posted Hide Post
If you -SET ECHO=ON; and SET XRETRIEVAL=OFF, you can look at your generated code and see if it looks correct. You might want to post it here as well.


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
Gold member
posted Hide Post
Okay, from adding that code in, I got an output result of:

...RETRIEVAL KILLED
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
(BEFORE DISTINCT TESTS)



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Expert
posted Hide Post
What was the generated code, the TABLE request with the evaluated WHERE tests?

Also, are you sure that you have matching records for your screening conditions?


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
Gold member
posted Hide Post
I figured it out...I needed a LJUST for the username field...was not comparing the exact username, rather one with spaces....Thanks for your help!!



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 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] variables being filtered to a No HTML, zero table output result

Copyright © 1996-2020 Information Builders