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     Appending multiple tables to HOLD files.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Appending multiple tables to HOLD files.
 Login/Join
 
Gold member
posted
I'm using WebFOCUS 4.3.6 and would like to have multiple table requests save/append to the same HOLD file. Is this possible? I'm a newbie, so forgive me if this is an obvious capability.
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
sure, a great question and a cool technique. make sure your hold files have the same fieldnames. it helps (less agro) if they're identical in layout but not necessary for this technique. the fieldnames must be ident in format.
TABLE FILE CAR
..do stuff..
ON TABLE HOLD AS H1
END
TABLE FILE MYCAR
..do the same stuff..
ON TABLE HOLD AS H2
END
...continue for as many holds as you need.
...now...
TABLE FILE H1
..do some cool stuff using fieldnames common
..to all your Hn files
ON TABLE HOLD AS HFINAL
MORE
FILE H2
MORE
FILE H3
MORE
FILE H4
....as many as you need.
END
Your file called HFINAL will contain all your merged stuff;

Now, if the hold files are focus files (ON TABLE HOLD AS H1 FORMAT FOCUS) and they are identical structure, then
USE
H1 AS H1
H2 AS H1
H3 AS H1
H4 AS H1
...etc
END
TABLE FILE H1
..do stuff

got it??
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Thank you. I got it. I thought there might be another way using a FILEDEF for my HOLD file or something else where I wouldn't have to use the MORE command. So WebFOCUS will always overwrite a HOLD file? There is no directive to change this behavior to append?
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
Ah..i detect a mainframe brain behind this question...I bet you're thinking about that filedef append thing we used to do in cms or was it tso? I looked it up and hot dog, it works.
FILEDEF APPND DISK D:\IBI\APPS\APPND.FTM
FILEDEF HOLDMAST DIR D:\IBI\APPS\
TABLE FILE CAR
PRINT COUNTRY IF COUNTRY IS 'FRANCE'
ON TABLE HOLD AS APPND FORMAT ALPHA
END
-RUN
FILEDEF APPND DISK D:\IBI\APPS\APPND.FTM (APPEND
TABLE FILE CAR
PRINT COUNTRY IF COUNTRY IS 'ENGLAND'
ON TABLE SAVE AS APPND
END
TABLE FILE APPND
PRINT *
END

in answer to your pm, the (APPEND is required syntax. it says i'm going to append to the existing file. without it, you would overwrite the existing file. Here's the link to the ibi support site that explains it.
http://documentation.informationbuilders.com/masterinde.../wf_user/08app20.htm

this is a great question, and a technique i need to use, just hadn't been motivated to go research it. thanks for the push.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Appending multiple tables to HOLD files.

Copyright © 1996-2020 Information Builders