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

Problem while using OCCURS in bms maps


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

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Feb 04, 2009 6:01 pm
Reply with quote

I am using OCCURS=2 in DFHMDF macro of bms map for a field called NAME but data populated for field NAME(1) and NAME(2) on the map is horizontally. Example if name(1) = ABHAY and name(2)=PATU then on the map it is being displayed as

ABHAY PATU

I want the data to be like

ABHAY
PATU

Can anyone let me knoe is there something extra needs to be provided in DFHMDF macro for the field NAME.
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: Wed Feb 04, 2009 6:25 pm
Reply with quote

Check the CICS Applications Programming manual -- link at the top of the page -- OCCURS always goes horizontal. You cannot generate via DFHMDF a vertical field the way you want. You can define a set of lines with the fields and redefine the map fields as an array in your program, which I've done a number of times before.
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Feb 04, 2009 6:27 pm
Reply with quote

Robert Sample wrote:
which I've done a number of times before.

Please provide me any example of this.
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: Wed Feb 04, 2009 6:32 pm
Reply with quote

You have a problem reading your own code and creating a redefine on the map based on what the code says? If you really need this, I am willing to provide the code for my usual daily rate -- but I'm not cheap.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Feb 04, 2009 6:50 pm
Reply with quote

Robert Sample wrote:
You have a problem reading your own code and creating a redefine on the map based on what the code says? If you really need this, I am willing to provide the code for my usual daily rate -- but I'm not cheap.


I will do it for 5% less!
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: Wed Feb 04, 2009 7:22 pm
Reply with quote

Boy, undercut already and I haven't even given a rate!
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Wed Feb 04, 2009 9:09 pm
Reply with quote

For 2 rows, occurs is not worth the trouble.

Just define each field

ABHAY
PATU

on 2 different lines.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Wed Feb 04, 2009 9:14 pm
Reply with quote

Quote:
Boy, undercut already and I haven't even given a rate!


Robert,

Times are tough, even experienced consultants are scrambling over the breadcrumbs.
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Thu Feb 05, 2009 10:35 am
Reply with quote

Earl Haigh wrote:
For 2 rows, occurs is not worth the trouble.

Just define each field

ABHAY
PATU

on 2 different lines.

But defining fields in case of 15 or 20 fields will cause problem.
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: Thu Feb 05, 2009 11:58 am
Reply with quote

Hello.

Quote:
But defining fields in case of 15 or 20 fields will cause problem.
Why will this cause problems?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Feb 05, 2009 6:33 pm
Reply with quote

abhay pratap singh wrote:
But defining fields in case of 15 or 20 fields will cause problem.


Not defining them will cause even more of a problem.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Feb 05, 2009 10:38 pm
Reply with quote

ABhay,

your original post
I am using OCCURS=2 in DFHMDF

says indicates 2 occurances, which is it , 2 fields or 15/20 ?

The biggest benefit of using occurs is less code, both in DFHMDF macros
and related CICS application(s) that use the map.

It is not a requiment to use occurs for BMS map.

You can code as many individual fields as you want (that will fit on a 3270 screen) without a problem.
[/quote]
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top