View previous topic :: View next topic
|
Author |
Message |
passion_sujesh
New User
Joined: 14 Mar 2008 Posts: 74 Location: India,Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
passion_sujesh
New User
Joined: 14 Mar 2008 Posts: 74 Location: India,Chennai
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|