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     [CLOSED] Suppress duplicate field names in hold file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Suppress duplicate field names in hold file
 Login/Join
 
Gold member
posted
The problem I have is the final output file (which is a comma delimited) ends up with fields I don’t want and I don’t want to name each field with the PRINT command on the output. I want to use PRINT * if at all possible.

I want avoid doing this (listing every field):

Table File Focus_Hold
Print
Field1
Field2
On table hold as flat_file format comma
END

This is how the code works now.

Join Clear *
Join field1 in Focus_Hold to field1 in Oracle_table
END

Table File Focus_Hold
Print *
On Table hold as flat_file format comma
End

This is what the file looks like:
Field1 (from Focus_Hold)
Field2 (from Focus_Hold)
Field1 (from Oracle_table) <- I don’t want this field in my final comma delimited file.

Any ideas ?

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


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
 
Posts: 88 | Location: Seattle | Registered: March 29, 2007Report This Post
Master
posted Hide Post
Then do not use *, name each field.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
That's what I said I was trying to avoid. Any other ideas?


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
 
Posts: 88 | Location: Seattle | Registered: March 29, 2007Report This Post
Gold member
posted Hide Post
Never mind. We found a potential solution using CHECK FILE. Thanks.


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
 
Posts: 88 | Location: Seattle | Registered: March 29, 2007Report This Post
Gold member
posted Hide Post
Unfortunately the potential solution did not work. We're still hoping someone has a solution for this. Thanks.


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
 
Posts: 88 | Location: Seattle | Registered: March 29, 2007Report This Post
Expert
posted Hide Post
 
Join Clear *
Join FILE Focus_Hold   AT field1 TAG T1 TO ONE
     FILE Oracle_table AT field1 TAG T2 AS J1
WHERE T1.FIELD1 EQ T2.FIELD1;
END

Table File Focus_Hold
Print 
  T1.*
On Table hold as flat_file format comma
End


Not addressing the use of mixed-case in your example...

hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
Tom, How do you print the fields in T2




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
T2.field2 T2.field3 T2.field4, etc...

and he can go from there. I usually don't assist with shortcuts, AND, this one will probably not work.

I was just addressing the exclusion. Of course, He can SAVE on the first run, copy all the fields into a fex, clean it up and do a -INCLUDE for the columns needed in the real run...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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     [CLOSED] Suppress duplicate field names in hold file

Copyright © 1996-2020 Information Builders