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
 

 

Using Occurs parameter in MAP-DFHMDF to increase copy-field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
rsingh

New User


Joined: 24 Mar 2009
Posts: 10
Location: bangalore

PostPosted: Wed Jul 29, 2009 2:29 pm    Post subject: Using Occurs parameter in MAP-DFHMDF to increase copy-field
Reply with quote

I have written code for Copy-fields in a map using Occurs property.

EMPID DFHMDF POS=(05,03),INITIAL='_____',LENGTH=5,ATTRB=(UNPROT),
OCCURS=2
FSTNM DFHMDF POS=(05,11),INITIAL='__________',LENGTH=10,
ATTRB=(UNPROT),OCCURS=2

Now, when i compile the map using jcl,I get maxcc=4.
The details of the message is:
For the fields defined with occurs clause:
FIELDS OVERLAPPING WITH MODE = IN OR INOUT.

Also, when i see the screen in CICS region,i find the fields not positioned correctly.
empid was at (05,03) and (05,23) whereas it should be positioned at (05,03) and (06,03)

Please help me on what wrong that may be happening here and how to correct it.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 29, 2009 4:15 pm    Post subject:
Reply with quote

???
what is 'occuring'? the fields within a line or lines with many fields.

like any other table, put the occurs clause where it belongs.

group occurs 2
elem-item1
elem-item2

instead of

elem-item1 occurs 2
elem-item2 occurs 2
Back to top
View user's profile Send private message
rsingh

New User


Joined: 24 Mar 2009
Posts: 10
Location: bangalore

PostPosted: Wed Jul 29, 2009 4:40 pm    Post subject:
Reply with quote

Quote:
like any other table, put the occurs clause where it belongs.

group occurs 2
elem-item1
elem-item2


If i have understood it correctly,u r talking to implement it using symbolic map.

but i am not sure how this will display in the physical map which will be in CICS region.
If i have done it in physical map, how this may go wrong...........
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed Jul 29, 2009 7:33 pm    Post subject:
Reply with quote

The screen is filled from left to right and top to bottom.
When you use OCCURS, the occurences will appear to the right, not below.
they will appear on the next line only when the line is filled (one field will certainly appear as if split in two, part on right of line X and the rest on left of line X+1).
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm


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