# Change Appearence in Maps

**URL:** <https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-on-Windows-Unix\
**Created:** [May 12, 2011, 3:55pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072 "2011-05-12T15:55:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 12, 2011, 3:55pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/1 "2011-05-12T15:55:59Z")

</div>

Hi,

We have several envirments for Natural under Cics.  
One of the envirments is for Production and the other are for development & testing.

They look the same except the cics logging, but once you logged in they are the same.  
Now days, we want to change the appearance in our production env.  
Can I add a Frame for all maps?  
How do I do it?

With Reagrds,  
Hezi

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [May 12, 2011, 9:20pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/2 "2011-05-12T21:20:25Z")

</div>

Hi Hezi,

If I understand correctly what you mean by “frame”, you wish to have something on your screens show that you are in the production environment so you know you’re there as opposed to dev, QA etc. Is this correct?

You will need to modify all your maps to include this label, which you will populate by having a common subprogram that you call which determines environment based on the location of one of your system files (i.e., FNAT dbid & fnr will do). You could even get fancier than that with AIVs that get set with LOGONEX1, but that isn’t required.

I know of no way to just “frame” your maps without touching them all.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 13, 2011, 2:02am UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/3 "2011-05-13T02:02:16Z")

</div>

If Brian’s interpretation of what you want to do is correct, there is a way to achieve this with “minimal” work. If is not correct, please add further explanation of what you are trying to do.

It involves using what are called “Layouts” with your maps.

I will poke around to find an article I wrote for Inside Natural that explains Layouts and post it here, probably later this afternoon or later this evening.

steve

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 13, 2011, 2:18am UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/4 "2011-05-13T02:18:49Z")

</div>

Okay, I have attached the Inside Natural issue as a PDF file.

If you have any questions, either just post them (if of general interest), or e-mail me if the question(s) is specific to your needs.

steve  
[IN Vol 15 No 4.pdf](https://techcommunity.softwareag.com/uploads/short-url/upbooqWUaR3496m8OnPxG82v36m.pdf) (222 KB)

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 15, 2011, 1:00pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/5 "2011-05-15T13:00:34Z")

</div>

Hi,

We have already a subprogram which determines in what env we are.  
Can I change the layout in all maps using batch process to add them a frame color?

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [May 15, 2011, 2:24pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/6 "2011-05-15T14:24:30Z")

</div>

Colored frames are available for pop-up windows, not for normal, full-screen maps. The frame takes up space - adding “lines” and “columns” to the size of the map. On normal maps, you are already using the full 24x80 screen. There is no room for a frame.

> [@](#):
>
> Can I change the layout in all maps using batch process…?

If by “layout” you mean the one specified in the map profile (as suggested by Steve), then you make a single change in each environment - paste the environment variable into the layout. If all your maps specify the same layout, then execute a CATALL, and you’re done; there is no need for a batch edit process. If you need to specify the layout in each map profile, then do this manually.

If by “layout” you mean the physical positions of the fields and captions on the screen, then the answer is NO. Do not attempt to maintain map source code (for example, inserting your environment value into the map header) via a batch process. Maps contain proprietary code - their internal structure is different from programs and subprograms. Making source code changes can easily break them. For safety, map changes must be implemented manually. This includes specifying a layout in each map profile.

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 15, 2011, 2:28pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/7 "2011-05-15T14:28:16Z")

</div>

Ok, I understand.  
I will try to change a few as you wrote.

Thanks you all  
Hezi

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 15, 2011, 3:51pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/8 "2011-05-15T15:51:11Z")

</div>

Hi,

How can I add ‘Framed’ without using set/define windows?  
I mean only in the Map code/

Hezi

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 15, 2011, 6:41pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/9 "2011-05-15T18:41:15Z")

</div>

There is a wonderful “trick” I learned from Andreas Schutz that I keep finding strange uses for.

Andreas called this a “pre-processing” rule. I believe the original use was to change values from marks to euros “in a map” rather than in many places in the code.

The reason this works is as follows. Write a Layout for a Map. In the Layout, create a PF key processing rule. This will always be executed after the Layout is executed, BUT, before the “real map” is executed.

So, you could code something like SET CONTROL ‘WL78C22F’ in the processing rule for the Layout (thats all, just one statement).

You should see a framed window with whatever is in your map.

Here is a “driver program”

INPUT USING MAP ‘FRAM02’

Next, create a Layout FRAM03, as discussed above with the SET CONTROL processing rule. Just so you can “see” what is going on, add text like “This is from the Layout”.

For the MAP FRAM02, simply put some text like “This is from the map”  
Use PF2 to specify a layout FRAM03 for the map FRAM02. Specify DYNAMIC.

Now run the driver program. You should see the two text lines (one each from FRAM02 and FRAM03) inside a frame.

I am presently trying to color the frame. Will report on this later.

steve

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 15, 2011, 7:10pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/10 "2011-05-15T19:10:24Z")

</div>

Okay, have the color working. Sometimes it helps to actually read the manual to get the syntax correct.

In the Layout. prior to the SET CONTROL ‘WL78C22F’ in the processing rule, insert SET CONTROL ‘=FR=YE’

Now you should get a yellow border to your frame

Working backwards now:

In the driver program you could have a variable, say, #COLOR (A2)

In the map FORM02, you must insert #COLOR using The Define Variables from the main menu for the map editor. Then use PF key for Paramater data area (forget which one offhand).

In the Layout FORM03, do a similar insert of #COLOR. Also insert some code code like:

IF #COLOR = ‘BL’  
SET CONTROL ‘=FR=BL’  
else  
SET CONTROL ‘=FR=YE’  
end-if

Or, just use a decide statement to do this. Or,

COMPRESS ‘=FR=’ #color into #setter leaving no space

where #setter is a local defined variable (use the local pf key from the main menu for form02) formatted say A10.

Then just SET CONTROL #SETTER

STOW FORM02 and FORM03.

Go to the driver program. Give a value to #COLOR. You should be able to change #COLOR in the driver program and get different colored frames.

fun stuff

steve

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 15, 2011, 7:40pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/11 "2011-05-15T19:40:53Z")

</div>

Hi,

It works great.  
I will be happy to add color to the frame

Hezi

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 17, 2011, 12:52pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/12 "2011-05-17T12:52:22Z")

</div>

Hi,

Can I use parameters in the “Layout” from the map?  
How can I pass Parameters in the “Layout”?

Hezi

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [May 17, 2011, 1:06pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/13 "2011-05-17T13:06:08Z")

</div>

Sorry, for that.  
No need to answer (Thanks for the layout manual).

Hezi

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:00pm UTC](https://techcommunity.softwareag.com/t/change-appearence-in-maps/97072/14 "2021-04-02T15:00:14Z")

</div>


