Focal Point
[CLOSED] best practice to avoid data collision for drill down report that use hold

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/49810556

March 31, 2009, 10:19 AM
Dad
[CLOSED] best practice to avoid data collision for drill down report that use hold
Is there a practical method to create a FILEDEF that points to the ever changing temporary session area APPHOLD path ?

I get a FOC 205 error (can't find master) when executing drill downs within a drill down report. I am guessing when the initial report is generated the session closes and WebFOCUS is no longer able to find its way to the files it created once the drill down is executed.

By querying the path ( ? PATH ) I can "see" the location of the temporary session (ts000008), but the challenge is pointing to this since it changes with each session.
APPHOLD = E:\ibi\srv71\wfs\edatemp\ts000008;

I have multiple concurrent users needing to access 3 hold files HOLD_A, HOLD_V, HOLD_D and would like to determine the best way to avoid data collisions or clobbering of the hold files.

Many thanks,

This message has been edited. Last edited by: Kerry,


Developer Studio 717
Windows XP
AHTML, HTML, EXL2K, ALPHA, FOCUS, COM, and PDF output formats
April 01, 2009, 11:12 AM
Moogle
Your version of WF does not support something called FOCCACHE, which would be the best/easiest way of doing what you want. If you can't get your site to upgrade to 7.6.5+, you should probably store hold files by username in an application folder.

-Make sure the folder exists in your application directory
-create a sub folder by username
-do a prependpath to add that folder to the app path
-app hold to the sub folder

Here's some code I used to use, before FOCCACHE:

-**************************************
-* THIS CREATES A TEMPORARY WORK FOLDER FOR THE USER OR CLEARS IT OF OLD FILES IF IT ALREADY EXISTS:
-*-* this section clears the contents of the sales_wrk_area\username folder
-SET &NEWAPP=&APPROOT | '\sales_wrk_area\' | &IBIMR_user;
-*
DOS STATE &NEWAPP
-RUN
-IF &RETCODE EQ 0 GOTO DELFILES;
DOS MD &NEWAPP
-RUN
-GOTO GOINGNOW;
-DELFILES
-SET &DEL1=&NEWAPP | '\*.*/Q';
DOS DEL &DEL1
-RUN
-GOINGNOW
-SKP_APPMAP
APP MAP CURSALES &NEWAPP
-RUN
APP PREPENDPATH CURSALES
-*
-**************************************

You can issue an APP HOLD CURSALES when you need to start saving to that folder, and issue an APP HOLD to turn it off. Obviously modify the names to suit your environment.

Cheers,

Joey


-WebFOCUS 8.2.01 on Windows