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     USE..AS..END not working

Read-Only Read-Only Topic
Go
Search
Notify
Tools
USE..AS..END not working
 Login/Join
 
Gold member
posted
Hi,

This is my first post, so apologies if I get it all wrong. ^^
I am in the process of migrating reports from an old version of webfocus to a new one (vs 4 to vs 7).
I have come across a report that has the following code:

USE
D:\IBI\file.txt AS TESTFILE
END

FILEDEF TESTFILE DISK D:\IBI\file.txt

DEFINE FILE TESTFILE
..blah blah
END

TABLE FILE CNHEXT
PRINT
and it goes on...

Since I did not write this code and do not know who did, I am clueless as to why this USE statement is not working - and why it is there in the first place. I have searched, but cannot find any reference to it being used in this way.

Any help/explanation would be great!

K.


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 2008Report This Post
Master
posted Hide Post
Ditch the USE - the FILEDEF will be enough. USE is meant only for FOCUS or XFOCUS files.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
Can you view the file.txt referenced. I've never seen the structure, but I wonder if it was just another way of pointing to the file. What happens if you comment out thte code?


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
Jinx
the USE syntax is for focus files only.
you'll want to FILEDEF for a text file
FILEDEF TESTFILE DISK D:\IBI\file.txt
is already in your code and should do the job for you.
The USE statement as you have it should be producing an error, just comment it out, or nuke it.
-S.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Jinx,
quote:
DEFINE FILE TESTFILE <-----
..blah blah
END

TABLE FILE CNHEXT <-----
PRINT
and it goes on...
I guess that the different file name was a typo or is TESTFILE accessed later on?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Oops, the CNHEXT was a mistake on my part.
I did try and comment the USE out as suggested. The report runs perfectly, odd how it worked fine on the old version and not on the new.
Thanks for the help!


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 2008Report This Post
Virtuoso
posted Hide Post
Ah, the wonderful world of 'it was wrong and now we fixed it'. IBI calls that 'tightening of the code'. Seems every release does it. Something that really shouldn't have worked did or release notes missed. Also, you will find features no longer supported.

Welcome to the world of WebFOCUS. A wonderful tool, but it can drive you crazy sometimes. Idea


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
quote:
'tightening of the code'
Trouble is that sometimes things loosen as well Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
LOL! So I have noticed in the past - after hours of 'debugging' to find it was something so simple.


7.6.11
Windows
HTML, PDF, Excel etc
DevStudio/Webfocus/Focus IBM
SQL Server 2000 / 2008
DB2
 
Posts: 78 | Location: UK | Registered: February 07, 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     USE..AS..END not working

Copyright © 1996-2020 Information Builders