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

Map and Mapset


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: Tue Oct 19, 2010 12:25 am
Reply with quote

Hi,

I have have an doubt in map and mapset definition.
I have an requirement in which i have to code a program (new program) to use the same map and mapset (existing in prod). Do i need to have another entry in the PPT for this map and mapset.
Example:

Existing prog:
Prog - xxxx, mapset - xxxs, map - xxxm, transaction - xxxt

New prog:
Prog - yyyy, mapset - xxxs, map - xxxm, tran - yyyt

New prog has additional features.

When i exicuted the tran - xxxt (old prog) it ran fine. Now when i executed the tran - yyyt (new pgm) i am getting an map fail error.

Please let me know if i need an seperate PPT (for map and mapset) entry for the new program?

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 19, 2010 12:35 am
Reply with quote

As long as the mapset and map names are the same, you can only have one of each defined in the region. If you are getting a MAPFAIL condition, as opposed to (for example) an APCT abend then the mapset and map are being found successfully. Since "map fail error" is not clearly definitive as to the problem, the best recommendation is to run the program through CEDF (or other debugger such as Abend Aid/CICS if you have it) to verify what happens with the map.
Back to top
View user's profile Send private message
passion_sujesh

New User


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

PostPosted: Tue Oct 19, 2010 1:23 am
Reply with quote

Hi Roberrt,

Thanks for the reply.

I tried using intertest and also CEDF, i am getting the error while trying to receive the map. Can one map and mapset be used for more than one program?

Thanks,
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: Tue Oct 19, 2010 1:31 am
Reply with quote

Look in the old program and check whether there's at least one map-field attribute-byte being set to FSET (or data has been entered).

Review IBM copybook DFHBMSCA for these definitions, such as (for example), DFHBUNF (UNPROT,NUM,FSET).

Are there any fields in the MAP itself that are defined with the FSET Attribute?

A MAPFAIL can occur when there's no map data to receive....

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 19, 2010 4:26 am
Reply with quote

As Bill said, MAPFAIL on a RECEIVE MAP is not necessarily an error -- depending upon the map, it may be normal to get MAPFAIL and to ignore it. You really have to look at the map details to know whether or not the MAPFAIL indicates a problem. This has nothing to do with using the map in multiple programs, and everything with the way the map works.
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 How to list BMS MAP screens in BMS Ph... CICS 2
No new posts loading a Modified Mapset CICS 2
No new posts Regarding New Mapset.. CICS 9
No new posts Include Map to Mapset CICS 1
No new posts OCCURS in CICS MAP & MAPSET CICS 3
Search our Forums:

Back to Top