IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Remove labels from map.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
passion_sujesh

New User


Joined: 14 Mar 2008
Posts: 74
Location: India,Chennai

PostPosted: Fri Oct 22, 2010 8:56 am
Reply with quote

Hi,

I have an requirement in which i have to use one map in two different programs. (eg) Map 'M' used by program 'A' and program 'B'.

In the map there are certain labels which are hard coded in the map definition (like Name:, Go To: .. etc). The labels are not variables.These labels are needed in Program 'A'. While in program 'B', I need to remove these labels. Is ther any way i can remove these labels from being displayed.

The map is already in production, so i cannot make any change to it. Can any one please help me in this.

Thanks in advance,
Sujesh.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 22, 2010 9:30 am
Reply with quote

Hello,

Quote:
The map is already in production, so i cannot make any change to it.
Of course it can. . . Indeed, it it suddenly failed tonight, it would be changed immediately. . .

What is actually needed? Can an actual example be posted?
Back to top
View user's profile Send private message
passion_sujesh

New User


Joined: 14 Mar 2008
Posts: 74
Location: India,Chennai

PostPosted: Fri Oct 22, 2010 4:21 pm
Reply with quote

Sample screen:

Screen in production:

Name: _____
Age: _____
Sex: _______
Addr: _______
Contact: _________

Go to: _____

This screen is in production. I have to create a new program which uses this same map. The new program should not display 'contact' and 'go to' labels.

The new program should display the following screen:

Name: _____
Age: _____
Sex: _______
Addr: _______

The labels are not variables and i cannot change the map.
Is it possible to hide the labels.

Pls help me in this.

Thanks in advance,
Sujesh.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 22, 2010 4:36 pm
Reply with quote

In BMS speak, there's a simple rule; No label, no access. If the screen literal "Go to:" is defined to the BMS map without a label in positions 1-8, then you can't hide it.

What would be the problem if you added a label?

If the map copybook is redefined in the program, then you've added a total of 9-bytes (data(6), attrib(1) and length(2)).

You can then move ASKIP,DRK (check copybook DFHBMSCA for this field name DFHBM*) to this new label (field) as well as the existing field, within your program.

Explain to whomever is preventing you from altering this map and inform them that what they want, can't be easily done.

Otherwise, you'd have to alter the map load-module on the fly (not recommended at all).

Things could get ugly.... icon_eek.gif

Bill
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 22, 2010 7:26 pm
Reply with quote

Hello,

Ah, the things we've done . . . icon_rolleyes.gif
Quote:
Otherwise, you'd have to alter the map load-module on the fly (not recommended at all).
Which is still "changing the map" using a sub-standard way. Worse, the result is that there is then no source for the map so when a change really is needed, the "fix" is removed. . .

If there is really this much reluctance to correct the map definition, add another map. . .
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 22, 2010 8:28 pm
Reply with quote

Dick,

Changing the load-module on the fly (IMHO) is not and should never be an option.

I probably should have emphasized this.

If this is done and another given task which requires this map displays it, the literal will be histoire. icon_eek.gif

So "ugly" would be the beginning and chaos would then ensue.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 22, 2010 8:45 pm
Reply with quote

Hi Bill,

Yup, i didn't believe you were recommending this be done - just that is it a bad choice icon_smile.gif

Heh, heh, heh - starts at ugly and goes downhill from there. . .

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
No new posts How to remove spaces in between. SYNCSORT 12
Search our Forums:

Back to Top