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.
My main task is to add new fields on a segment. and use REORG/DUMP and REORG/LOAD.
The REORG/DUMP works fine. But during the REORG/LOAD
I go the following FOC395 error FOC395) CANNOT WRITE TO A FILE WHOSE 'USE' COMMAND REQUESTS 'READ' If a file is specified as 'READ' in a USE command, a MODIFY procedure may not attempt to INCLUDE, UPDATE or DELETE data.
Is there anyone who can suggest any solution.
Note: My focus database is located at TSO (mainframe)This message has been edited. Last edited by: FP Mod Chuck,
Seems to be a stupid answer but AFAIK, I will look at the table access properties to ensure that you have the read/write access and that the table is not locked to read only.
Since my focus version is a legacy Focus in mainframe.
The problem occurs when I went into the native focus environment.
1. REBUILD/REORD/DUMP - all is fine at that stage. 2. The I use TED master(fileid) to edit the old master and replace by by new master file definition. 3. REBUILD/REORG/LOAD the error message FOC395 comes out.
DIRECTORIES IN USE ARE: INTEREST ON FOCSU INTEREST LOCAL
As you know, we use CLIST to trigger the Focus application. How can we tell my access in READ only. in FOCSU - focus file A LOCAL - focus file B for testing.
OK, so INTEREST is the name of the database you are doing a REBUILD on?
Given the results of your ? USE, it looks like INTEREST is running under a 'sync' machine (Simultaneous Usage [SU]). Is that correct?
I haven't been on FOCUS for z/OS in a long time, so take this with a grain of salt: I seem to recall that we didn't do a REBUILD on a FOCUS database while it was running under the SU.
I seem to remember our SU's ran at certain times of the day, and we would REBUILD when the SU was down.
Question: After the SU is down, am I rebuild the database from SU or my own database?
As I recall we followed this path: 1. Perform REBUILD REORG on a personal dataset. Test and verify. 2. Perform REBUILD REORG on a dataset used by the TEST SU. The TEST SU had a shorter uptime, and was used for purposes such as this. Test and verify. 3. Perform REBUILD REORG on the production dataset.
quote:
Are you saying that I have to bring down the SU such that I can REBUILD? or wait until SU is down?
We didn't ask our FOCUS DBA's/Site Coordinator's to bring up and down SU's. For many reasons, one of which was they had an uptime SLA. We would do maintenance like this during off hours (when the SU was down).
The way I thought of it is that while the SU is running you are really hitting a intermediary (communication facility) and not the physical database, which the SU is up and hitting the dataset.
For sure, check at your site, if you haven't already, if there are any standard protocols for doing a REBUILD REORG. For example, we had a standard job/focexecs that performed the DUMP phase, updated the MFD, performed the LOAD.
By definition a REBUILD is updating database internals, so you want to test, verify, and follow any site standards.
As always, back ups are your friend.
While I miss FOCUS for z/OS, it has been a while, so while I hope this helps, your mileage may vary.This message has been edited. Last edited by: David Briars,
I just follow the steps that our previous maintenance guy did.
1. Ensure that you have exclusive use of the INTEREST application (when SU is down) or ask the users to suspend input (if that is an option) and perform the changes in test and copy the new file definition, databases, and programs into production before the user's next input cycle.
2. At the INTEREST main menu press the PF3 key to enter native FOCUS
3. At the > prompt type in REBUILD
4. Select option 2. REORG
5. Select option 1. DUMP
6. Type INTEREST
7. At the ANY RECORD SELECTION TESTS? (YES/NO) type N
8. When the DUMP has finished (keep pressing the ENTER key until the > prompt appears)
9. Type TED MASTER(INTEREST)
10. Type NUM ON
11. At line 1, position 1 of the INTEREST file definition type D9999 to delete all the lines
12. Type GET MASTER(INTERDBA) to copy the INTERDBA new file definition into INTEREST member
13. Type FILE to save the changes
14. Type REBUILD
15. Select option 2. REORG
16. Select option 2. LOAD FOC395 occurs during LOAD
17. Type INTEREST
18. Keep pressing the ENTER key until the > prompt appears
19. Type FIN to exit the application
20. Copy the new FOCEXEC members
That is exactly the steps that you mention.
I will have the testing SU down again today to do one more testing.
In addition to doing the REORG while the SU is down, you might want to check: * your allocation to see if you have exclusive control and are not sharing it with anyone. DISP = OLD, not SHR. * sounds like you are running the REORG under your ID, is so, does your ID have READ and WRITE access? * that your profile isn't running a USE command on the file, ? USE should be able to tell you.
For sure though, follow your site standards, the manuals, and check with the IB Helpdesk if you still have questions.
Your first post says you are new to FOCUS, so you should know a REORG for a new person can be a bit of a challenge.This message has been edited. Last edited by: David Briars,
First, SU must be down. Second, I never, ever rebuild/reorg into the same mfd name. I know one is on SU and one is local, but there are certain things in FOCUS I don't trust (after being intimate with it for 40 years).
So, Bring down SU. Backup INTEREST and its mfd. Rebuild/Reorg from INTEREST into INTERDBA. Delete INTEREST and its mfd. Rename INTERDBA .mas and .foc files to INTEREST. Restart SU.