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

Using OCCURS in MAP definition.


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

New User


Joined: 23 Mar 2009
Posts: 22
Location: Bangalore

PostPosted: Mon Apr 27, 2009 2:29 pm
Reply with quote

Hi,

I am using occurs clause in the map definition. Code is as shown under:
Code:
  TESTIN  DFHMDF POS=(10,1),LENGTH=80,                                X
                ATTRB=(UNPROT,BRT),OCCURS=10 


the issue is that when the TRANS populates the this screen the output is like:

Code:
************************
 ************************
  ************************


instead of

Code:
*****************************
*****************************
*****************************


I tested it by varying the LENGTH to 79 but in vain.
Please suggest me where could I have gone wrong.
Back to top
View user's profile Send private message
Vishu

New User


Joined: 23 Mar 2009
Posts: 22
Location: Bangalore

PostPosted: Mon Apr 27, 2009 3:01 pm
Reply with quote

Hi ,
I have figured it out.
I made a silly mistake of keeping the length =80 .One can only keep it at max of 79 if the length of screen is 80.
Also I reduced the WS-variable length to 79. Hence making the mapping appropriate.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Apr 27, 2009 3:52 pm
Reply with quote

thx for getting back and letting us know the solution.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Apr 27, 2009 7:03 pm
Reply with quote

Each field has its own attribute character, that is why field length should be 79 instead of 80.
The attribute character comes to the left of the field.
In your example, the expected result should look like:
Code:
 *****************************
 *****************************
 *****************************

Not:
Code:
*****************************
*****************************
*****************************
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 Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts CONTROL-M SCHEDULING DEFINITION FACILITY Compuware & Other Tools 1
No new posts how to interrogate an Optim Access De... DB2 2
This topic is locked: you cannot edit posts or make replies. SYMNAMES using COBDFSYM for OCCURS cl... CLIST & REXX 12
No new posts How to see VIEW definition from BMC c... DB2 1
Search our Forums:

Back to Top