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] can't get EMPTYREPORT on with simple COMT format - URGENT!

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] can't get EMPTYREPORT on with simple COMT format - URGENT!
 Login/Join
 
Platinum Member
posted
I was trying to get empty csv file with the following but it only gives 0 record message instead of file.. Any help is appreciated.


TABLE FILE CAR
PRINT COUNTRY
WHERE COUNTRY EQ 'NOTHING';
ON TABLE SET EMPTYREPORT ON
ON TABLE PCHOLD FORMAT COMT
END

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
If you want a real file, you are going to have to do a HOLD not a PCHOLD. And an APP HOLD dirname command in front to specify the location where the empty file is to be stored.


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
Platinum Member
posted Hide Post
yes, you are right, I was able to save an empty file using HOLD, but it doesnot have column Titles for the blank report. Is there something else I should do.?


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
I think if you want column titles, you are going to have at least one blank row.


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
Platinum Member
posted Hide Post
How do I make up a blank row?


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
APP HOLD dirname
TABLE FILE CAR
PRINT COUNTRY
WHERE COUNTRY EQ 'NOTHING';
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-IF &LINES EQ 0 GOTO EMPTYCSV;
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD FORMAT COMT
END
-EXIT
-EMPTYCSV
DEFINE FILE CAR
XCOUNTRY/A10=' ';
END
TABLE FILE CAR
PRINT XCOUNTRY AS COUNTRY
COUNTRY NOPRINT
IF RECORDLIMIT EQ 1
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD FORMAT COMT
END

This still gets you one row.

Or you could -WRITE a file with just column headings if &LINES was zero.


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
Platinum Member
posted Hide Post
that solved it.
You have been a great help!. Thank you very much!


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Guru
posted Hide Post
getit,

If your ultimate goal is to get the fieldnames with no data you could do something like this...
CHECK FILE CAR HOLD AS CARHLD
TABLE FILE CARHLD
SUM FIELDNAME 
ACROSS FIELDNAME NOPRINT
ON TABLE PCHOLD FORMAT COMT
END


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report 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] can't get EMPTYREPORT on with simple COMT format - URGENT!

Copyright © 1996-2020 Information Builders