View previous topic :: View next topic
|
Author |
Message |
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
Robert Sample wrote: |
which I've done a number of times before. |
Please provide me any example of this. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Boy, undercut already and I haven't even given a rate! |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
For 2 rows, occurs is not worth the trouble.
Just define each field
ABHAY
PATU
on 2 different lines. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
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 |
|
|
abhay pratap singh
New User
Joined: 22 Nov 2007 Posts: 77 Location: noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello.
Quote: |
But defining fields in case of 15 or 20 fields will cause problem.
|
Why will this cause problems? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
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 |
|
|
|