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]Change the Text format extension from .ibfs to .txt

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Change the Text format extension from .ibfs to .txt
 Login/Join
 
Guru
posted
Hi,

Iam using the below piece of code for the text format :
TABLE FILE CAR
PRINT *
ON TABLE PCHOLD FORMAT DFIX DELIMITER | HEADER YES
END
-EXIT

Upon running the report,I will get the output alert box with an option as shown below :
Name : WFServlet.ibfs
Type : Unknown File Type

Iam getting the correct output but I need to change the format of the output along with its extension from WFServlet.ibfs to anyname.txt

Is there any workaround to do the same.Please let me know.

Thanks a lot in advance!

Regards!

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


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Silver Member
posted Hide Post
We do this quite a bit, however rather than just having it create the file using PCHOLD we save the file to an APPS folder.

At the beginning of the fex, we set the File name and extension and FILEDEF our output
-SET &FILE1= 'anyname' | '.txt';
FILEDEF ANYNAME DISK C:\IBI\APPS\OUTPUT-FILES\&FILE1

TABLE FILE CAR
PRINT *
ON TABLE SAVE AS 'ANYNAME' FORMAT DFIX DELIMITER | HEADER YES
END
-EXIT

This will then Save your output as a file in the Apps Folder with the name you specified.


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Report This Post
Guru
posted Hide Post
Hi Rogerwilkouk,

Thanks a lot for the quick response and for the solution.
But is there any way we could do it in PCHOLD?

Please let me know.

Thanks a lot in advance!


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Guru
posted Hide Post
To display it in the browser, have this at the end of rogerwilkouk code

EX EDAGET TXT,OUTPUT-FILES/&FILE1,B
-RUN


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Gold member
posted Hide Post
Answer lies somewhere in "Redirection settings" of client (Admin console "Configuration). We had excel with similar issue with excel files and redirect settings fixed it.


Release: WebFOCUS 8104, AppStudio: 8105
OS: Windows
Output: HTML,Excel,Active Reports
 
Posts: 89 | Registered: November 19, 2013Report This Post
Guru
posted Hide Post
Hi,

Thnaks a lot everyone.

Regards!


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Expert
posted Hide Post
quote:
But is there any way we could do it in PCHOLD?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
info4pal, can you post on what you did that finally worked? I am getting my file saved to the location, but then EDAGET says it can't find it.



Prod: 8.2.0.4 OS:Windows 10 Output:AHTML, Excel 2007+

The life of a designer is a life of fight against the ugliness.
 
Posts: 141 | Location: North Carolina | Registered: August 10, 2012Report 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]Change the Text format extension from .ibfs to .txt

Copyright © 1996-2020 Information Builders