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 in MAP definition.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Using OCCURS in MAP definition.
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    Post subject: Reply to: Using OCCURS in MAP defination.
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: 6967
Location: porcelain throne

PostPosted: Mon Apr 27, 2009 3:52 pm    Post subject:
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: 1228
Location: Israel

PostPosted: Mon Apr 27, 2009 7:03 pm    Post subject:
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    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 How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
No new posts Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts Dataclass definition in NDM card j_prameela2000 All Other Mainframe Topics 1 Fri Sep 05, 2014 12:45 am
No new posts Syncsort - help needed with ICETOOL O... ramas.kamal SYNCSORT 2 Wed Apr 16, 2014 4:17 pm
No new posts WHY SQLCODE -508 occurs if COMMIT bet... dejunzhu DB2 5 Fri Nov 08, 2013 7:30 am


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