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.
I have searched Focal Point for my answer, but cannot seem to find a solution to my specific problem so I am going to ask for help...
I have the following simple code:
APP HOLD BASEAPP
DYNAM ALLOC FILE TEMPHLD1 DS 'WEBFOCUS.APP.BASEAPP.TEMPHLD1.FOCUS' NEW REUSE
TABLE FILE CAR
PRINT COUNTRY
CAR
ON TABLE HOLD AS 'TEMPHLD1' FORMAT FOCUS
END
While I am getting the file allocated, the master data is not being generated for use by other procedures. What am I missing? Thanks.This message has been edited. Last edited by: DJ,
WebFOCUS 7.6.8 zOS 1.9 (Mainframe) Excel, PDF, HTML, Active HTML
take the quotes away from the hold file name you're on mainframe, i'm guessing? Is that why you're using DYNAM ALLOC ? Your signature says you're on Windows. If you're on windows, forget the DYNAM business APP HOLD BASEAPP USE BASEAPP/TEMPHLD1.FOC NEW END TABLE FILE .... ON TABLE HOLD AS TEMPHOLD1 FORMAT FOCUS END APP HOLD -* now go look in your baseapp
Go read one of the basic set of 4 manuals, DESCRIBING DATA ...that's going to help you get a handle on FILEDEF (for non focus files), USE (for focus files)
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Yes, sorry, I am on a mainframe (and I changed my profile) so I will need the DYNAM ALLOC.
I tried:
APP HOLD BASEAPP
USE
DYNAM ALLOC FILE TEMPHLD1 DS 'WEBFOCUS.APP.BASEAPP.TEMPHLD1.FOCUS' NEW REUSE
END
TABLE FILE CAR
PRINT COUNTRY
CAR
ON TABLE HOLD AS TEMPHLD1 FORMAT FOCUS
END
APP HOLD
and I got an error:
(FOC082) INCOMPLETE OR INCORRECT FOCUS FILE NAME IN 'USE' COMMAND: ALLOC
So I took out the USE and reran it. No errors that time, but still no master file for TEMPHLD1.
WebFOCUS 7.6.8 zOS 1.9 (Mainframe) Excel, PDF, HTML, Active HTML
Still no metadata being created for the file. I get the file without a problem. Might there be an admin setting that has to be addressed? Has this turned into a technical support question?
Here is the last bit of code I ran:
APP HOLD BASEAPP
-RUN
DYNAM ALLOC FILE TEMPHLD1 DS 'WEBFOCUS.APP.BASEAPP.TEMPHLD1.FOCUS' NEW REUSE
-RUN
TABLE FILE CAR
PRINT COUNTRY
CAR
ON TABLE HOLD AS TEMPHLD1 FORMAT FOCUS
END
-RUN
APP HOLD
WebFOCUS 7.6.8 zOS 1.9 (Mainframe) Excel, PDF, HTML, Active HTML
Thank you susannah, JG, Danny-SRL and Tom! Your input made my day. For reference (in case someone else ever has this problem), here is the code that finally performed as I expected:
APP ENABLE
APP HOLD BASEAPP
-RUN
DYNAM ALLOC FILE TEMPHLD1 DS 'WEBFOCUS.APP.BASEAPP.TEMPHLD1.FOCUS' NEW REUSE
DYNAM ALLOC DD HOLDMAST DA 'WEBFOCUS.APP.BASEAPP.MASTER.DATA' SHR REUSE
-RUN
TABLE FILE CAR
PRINT COUNTRY
CAR
ON TABLE HOLD AS TEMPHLD1 FORMAT FOCUS
END
-RUN
APP HOLD
Thank you all for your help.
WebFOCUS 7.6.8 zOS 1.9 (Mainframe) Excel, PDF, HTML, Active HTML