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.
In mainframe focus, you can create several hold files and then do a copy hold1.ftm to print file and append hold2.ftm to the same print file. How do I do that with WebFocus?
Thanks, MalindaThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.11 Windows all output (Excel, HTML, PDF)
Don't know exactly what you mean with 'print file'. That is not really a concept very well known on windows machines. But appending to a hold file can be done by means of the filedef statement: FILEDEF ddname DISK filename.ftm (APPEND will do the trick. Be sure you point the filedef to the right logical (ddname) and physical filename.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I guess I don't know which is my best options. I have already created my 2 hold files. Hold 1 contains the stu id, site id, and the role. hold 2 contains the instructor id, site id and role.
I can do a join on my hold files and create my final file that way but was wondering of a better way or recommendations since my training and knowledge is fairly limited.
I would say probably either MORE or FILEDEF?
Malinda
WebFOCUS 7.6.11 Windows all output (Excel, HTML, PDF)
If the number of columns, format and names of columns are exactly the same in the two HOLD files, MORE is the best choice. FILEDEF would also work.
But since you have different data in the two files, JOIN or MATCH are the two possibilities.
This does not seem to be the scenario you described in your opening post - "In mainframe focus, you can create several hold files and then do a copy hold1.ftm to print file and append hold2.ftm to the same print file"
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I guess I don't know which is my best options. I have already created my 2 hold files. Hold 1 contains the stu id, site id, and the role. hold 2 contains the instructor id, site id and role.
The approach you use depends on what you what to achieve with your report.
If you just want a list of "people" at school with no relationship among them then concatenating the sources would help (via MORE or FILEDEF). You would get something like:
ID NAME ROLE
--- --------------- ---------
100 FOX, MEGAN STUDENT
110 ROBERTS, JULIA STUDENT
120 WINSLET, KATE STUDENT
.
.
500 CAMERON, JAMES TEACHER
510 SPIELBERG, STEVEN TEACHER
.
.
Now, if what you need is a list of Students grouped by Teacher, then concatenation is *not* going to help. You'll need to JOIN both structures and then do the report so you could get:
TEACHER_ID TEACHER_NAME STUDENT_ID STUDENT_NAME
---------- ------------------ ----------- --------------
500 CAMERON, JAMES 110 ROBERTS, JULIA
120 WINSLET, KATE
.
.
510 SPIELBERG, STEVEN 100 FOX, MEGAN
.
.
It depends a bit on what the ultimate purpose of the concatenated file is.
If you trying to put together two identically layed out reports from different sources:
FILEDEF RESULT DISK RESULT.FTM (APPEND
TABLE FILE ONE
PRINT ....
ON TABLE HOLD AS RESULT
END
TABLE FILE TWO
PRINT ...
ON TABLE HOLD AS RESULT
END
This will put the result from both requests in the same file. You can further process the final file with the result master file, which is created by the second request.
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007