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.
Is there a way in mainframe FOCUS 7.7.03 or earlier to dymaically change the MASTER DDNAME allocation in a focexec? Let's say, after entering native FOCUS, MASTER is allocated to 3 PDSs.
I want to run a focexec that needs a master from PDS XYZ.OTHER.MASTER. How can I temporarily (only when the focexec is running) either append or prepend XYZ.OTHER.MASTER to the existing concatenation of libraries currently allocated to DDNAME MASTER? Is there any way to save or store the value of DDNAME MASTER (even a concatenation) to a variable or temp file, then add XYZ.OTHER.MASTER to the MASTER DDNAME concatenation, do some stuff using the master from XYZ.OTHER.MASTER, then restore DDNAME MASTER to what it was when the focexec was executed in native FOCUS, and exit the focexec? When a user initially enters native FOCUS the libraries allocated to DDNAME MASTER *should* be the same for everyone but that might not always 100% be the case. So I'm trying to determine if there's a "dynamic" way to change DDNAME MASTER instead of hardcoding specific allocations and concatenations at the beginning and end of the focexec.
I'm aware that the APP commands available in WebFOCUS are being added in FOCUS 7.7.06, and those might be useful in a situation like this, but I'm working with FOCUS 7.7.03 on z/OS for now.
Thanks, JamesThis message has been edited. Last edited by: <Emily McAllister>,
FOCUS 7.7.03 WebFOCUS 8.0.x/8.1 z/OS, Windows
Posts: 54 | Location: Everett, WA | Registered: September 27, 2005
It's been a long time since I logged into MVS but would DYNAME ALLOC be what you're looking for?
The FOCUS DYNAM command is used to manipulate data sets under z/OS. Although similar functions are available under TSO, the DYNAM command is very useful in non-TSO environments when TSO is not necessarily present. DYNAM is recommended instead of TSO commands to manipulate data sets.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
We use DYNAM ALLOC extensively in our existing mainframe FOCUS routines. That is how I would manually re-allocate MASTER in the focexec that needs the XYZ.OTHER.MASTER library. I would also use DYNAM CONCAT as well to add another PDS to the concatenation of PDSs originally allocated to MASTER. For example:
<somehow save the current value of DDNAME MASTER here>
DYNAM ALLOC FI OTHERMFD DA XYZ.OTHER.MASTER SHR
DYNAM CONCAT FI MASTER OTHERMFD
<some code that uses a master from XYZ.OTHER.MASTER>
<here I want to set MASTER back to what it was before the DYNAM statements above>
-EXIT
The main issue I'm facing is figuring out how to (1) save the current MASTER DDNAME allocation somewhere (a Dialog Manager variable or a temp file) and (2) restore the MASTER DDNAME to what it was when the focexec started to run. The MASTER DDNAME, in my case, is going to have 3 PDSs allocated to it in a concatenation. There will be a difference in 1 of those 3 PDSs, depending upon the specific user on our system, though. My question is how can I put that list of 3 PDSs *somewhere* and also assign that saved list of 3 PDSs back to the MASTER DDNAME after I'm done doing everything else in the focexec.
Thanks, James
FOCUS 7.7.03 WebFOCUS 8.0.x/8.1 z/OS, Windows
Posts: 54 | Location: Everett, WA | Registered: September 27, 2005