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
 

 

How to dynamically change the attribute in map ?

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

Active User


Joined: 19 Mar 2009
Posts: 181
Location: Globe, India

PostPosted: Sun Jul 05, 2009 3:57 pm    Post subject: How to dynamically change the attribute in map ?
Reply with quote

Hi all,
I am facing a problem while sending an output to the map row by row.
There is one DISPLAY field having length 80 and occuring 5 times.
I am using cursors in my program and sending rows in CURSORS to this DISPLAY field one by one.
e.g.
X1 Y1 VENUE1 TIME1 DATE1 FIELD(E/V)-------DISPLAY(1)
X2 Y2 VENUE2 TIME2 DATE2 FIELD(E/V)-------DISPLAY(2)
X3 Y3 VENUE3 TIME3 DATE3 FIELD(E/V)-------DISPLAY(3)
X4 Y4 VENUE4 TIME4 DATE4 FIELD(E/V)-------DISPLAY(4).
Here the whole row is PROTECTED .....
I want FIELD to be unprotected and rest of the things in that row as a protected.
But i declared DISPLAY field as PROTECTED, and i want subfield in that DISPLAY as unprotected, to get the user input as EDIT(E) or VIEW(V) at that position.
I used following defclaration in map for diaplaying the rows.
DISP1 DFHMDF POS=(15,01), X
INITIAL='-----------------------------------------------X
--------------------------------', X
LENGTH=79, X
ATTRB=(ASKIP,NORM,PROT), X
OCCURS=5


Please help me ASAP to change the attribute dynamically in case of occurs.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Sun Jul 05, 2009 6:56 pm    Post subject:
Reply with quote

attributes deal with fields - as defined by the map.

if you have an 79 byte field that you populate with 5 things, you still only have one map field.

what you have to do is learn bms ASAP, and re-do you map so that each line of your map will contain multiple fields, each with their own attributes which you can dynamically modifiy.

suggest you read about bms and you will learn there is more to it that just redefining the copybook. you need to learn about the actual map, which is populated by CICS during the SEND with the values supplied in your copybook.

ASAP is a command, not a request. As such it is not really appreciated. you would do better to study IBM technical manuals instead of misusing english abbreviations in an attempt to have others carry-the-load for your lack of technical skills.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Mon Jul 06, 2009 9:01 am    Post subject:
Reply with quote

Quote:
ASAP is a command, not a request. As such it is not really appreciated. you would do better to study IBM technical manuals instead of misusing english abbreviations in an attempt to have others carry-the-load for your lack of technical skills.


Dick,
unfoturnately, this appears to be the "norm lately for this forum, I would like to see it return to the original intent of solving problems for real world
Mainframers and not a training ground for beginners.

Earl
icon_cry.gif
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: Mon Jul 06, 2009 9:14 am    Post subject: Reply to: How to dynamically change the attribute in map ?
Reply with quote

Especially since there is an entire separate forum for students and people with little/no experience. . .

http://www.ibmmainframeforum.com - "A Help & Support Forum for Mainframe Beginners and Students"

Site admin on this forum has been known to ban students here and point them to the other forum.

d

[/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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm


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