Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (FOC36318) MAP NAME: fochold ALREADY USED. USE "APP MAP fochold" TO UNMAP
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] (FOC36318) MAP NAME: fochold ALREADY USED. USE "APP MAP fochold" TO UNMAP
 Login/Join
 
Gold member
posted
Hi,

I am getting this error

(FOC36318) MAP NAME: fochold ALREADY USED. USE "APP MAP fochold" TO UNMAP

changing the hold name would resolve the issue. But just would like to check if there is really any way to UNMAP the maping as said in the error message.

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


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Reply With QuoteReport This Post
<JG>
posted
Do you have an APP MAP statement in your code?

If you do not then you should not be getting this error
 
Reply With QuoteReport This Post
Expert
posted Hide Post
Can you post the code that is causing the error?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6221 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
-DEFAULT &EXECRPTHLDLOC = '/home/apps/';
 -REPEAT ENDLOOP 3 TIMES
-SET &SUP_LVL = &START_LVL;
-SET &SUP_LWLVL = &SUP_LVL - 1;
-SET &HLDFILE = &EXECRPTHLDLOC||'lvl'||&SUP_LVL.EVAL||'car'||'/';
-*
APP ENABLE
APP MAP FOCHOLD &HLDFILE
APP HOLD FOCHOLD
-RUN
-*
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS CAR_OPT
END
-RUN
-*
-RUN
-ENDLOOP
-EXIT 


The code is actually little big so putting the idea here.
I have 3 different directory in /home/apps/ as lvl1car, lvl2car and lvl3car. I was expecting to save the output of the table file command to these three directories using loop. I actual case I have different outputs going to different directories.

_MKS


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Reply With QuoteReport This Post
Virtuoso
posted Hide Post
In the code you posted, &SUP_LVL remains constant through the three iterations of the loop.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
It may be easier if you used -REPEAT with FOR FROM TO.

-REPEAT ENDLOOP FOR &SUP_LVL FROM 1 TO 3 ;
.
.
.
-ENDLOOP


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6221 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Sorry I missed incrementing ...
  -DEFAULT &EXECRPTHLDLOC = '/home/apps/';
 -REPEAT ENDLOOP 3 TIMES
-SET &SUP_LVL = &START_LVL;
-SET &SUP_LWLVL = &SUP_LVL - 1;
-SET &HLDFILE = &EXECRPTHLDLOC||'lvl'||&SUP_LVL.EVAL||'car'||'/';
-SET &START_LVL = &START_LVL - 1;
-*
APP ENABLE
APP MAP FOCHOLD &HLDFILE
APP HOLD FOCHOLD
-RUN
-*
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS CAR_OPT
END
-RUN
-*
-RUN
-ENDLOOP
-EXIT


I am getting same error even if I use FOR loop.


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Reply With QuoteReport This Post
<FreSte>
posted
If I understand the question correctly, you want to HOLD 3 different files in 3 different directories.


-REPEAT :LB_LOOP1 FOR &I FROM 1 TO 3;
-* --- Name of directory "under" APPROOT
APP HOLD LVL&I.EVALCAR
TABLE FILE CAR
  SUM 
    DEALER_COST
  BY COUNTRY
  ON TABLE HOLD AS HLDLVL&I.EVAL FORMAT ALPHA
END
-:LB_LOOP1
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Note:
".EVAL" is generally superfluous in a Focus command (any line that does not start with "-"), since the script (amper) variable is always replaced by the character representation of its value before the line is placed in FocStack.

- - -

.EVAL will make a difference in a Focus command if the value of the referenced script variable is the name of another script variable. For example:
-SET &ECHO=ON;
-SET &ALPHA = '&' | BETA;
-SET &BETA  = CAR;
? FDT &ALPHA
-RUN
? FDT &ALPHA.EVAL

(Try it)


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Assuming each app directory exists, change the code to this.

APP ENABLE
APP MAP FOCHOLD&SUP_LVL &HLDFILE
APP HOLD FOCHOLD&SUP_LVL


or

APP ENABLE
APP MAP FOCHOLD
APP MAP FOCHOLD &HLDFILE
APP HOLD FOCHOLDL


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6221 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (FOC36318) MAP NAME: fochold ALREADY USED. USE "APP MAP fochold" TO UNMAP

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.