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
 

 

Problem while using OCCURS in bms maps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Problem while using OCCURS in bms maps
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: 7931
Location: Bellevue, IA

PostPosted: Wed Feb 04, 2009 6:25 pm    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Wed Feb 04, 2009 6:32 pm    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Wed Feb 04, 2009 7:22 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Feb 05, 2009 11:58 am    Post subject:
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    Post subject:
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    Post subject:
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    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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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