Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Remove labels from map.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Remove labels from map.
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

Site Director


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

PostPosted: Fri Oct 22, 2010 9:30 am    Post subject:
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    Post subject: Reply to: Remove labels from map.
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 22, 2010 4:36 pm    Post subject: Reply to: Remove labels from map.
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

Site Director


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

PostPosted: Fri Oct 22, 2010 7:26 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 22, 2010 8:28 pm    Post subject: Reply to: Remove labels from map.
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

Site Director


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

PostPosted: Fri Oct 22, 2010 8:45 pm    Post subject: Reply to: Remove labels from map.
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Remove header only knobi SYNCSORT 5 Mon Feb 15, 2016 10:42 pm
No new posts Append to file, but also remove old r... Garry Carroll JCL & VSAM 3 Mon Jan 25, 2016 8:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us