View previous topic :: View next topic
|
Author |
Message |
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
I am having a field in map it is declared as (askip,prot) .I want to receive value of this field while receiving map .
I tried searching few online material but didn’t work out so posting question here.
My approach: Please let me know were i am going wrong
CUST is map field it is declared as skip and protected
I am moving DFHBMFSE to attribute field of this field i.e., to CUSTA
Code: |
MOVE DFHBMFSE TO CUSTA
EXEC CICS
RECIEVE MAP(‘MAP1’)
MAPSET(‘MAPSET1’)
END-EXEC |
I am getting space in CUSTI field means CUSTI is not populating even after receive statement
Let me know how to set MDT on for a field in map.
Thanks in advance |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Try adding FSET to the field attributes in the map definition. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
MOVE DFHBMFSE TO CUSTA
EXEC CICS
RECIEVE MAP(‘MAP1’)
MAPSET(‘MAPSET1’)
END-EXEC |
if this is the code you are using, no wonder you are having problems.
you need EXEC CICS SEND MAP before you can RECEIVE map |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
Hi roopannamdhari,
Move DFHBMFSE to attribute part of the field (for which you want to set the mdt on ). Now, issue the send map. Now when you issue the receive the map command, your program can receive this field.
Thanks,
Ajay |
|
Back to top |
|
|
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
I would like to thank all for the reply ...
Earl,
Quote: |
if this is the code you are using, no wonder you are having problems.
you need EXEC CICS SEND MAP before you can RECEIVE |
i do have SEND MAP statement ,but i am moving DFHBMFSE to attribute field just before Receiving MAP .
Ajay,
Do you mean MDT need to be set before sending map itself not before receiving map ?
like :
Code: |
MOVE DFHBMFSE TO CUSTA
EXEC CICS
SEND MAP(‘MAP1’)
MAPSET(‘MAPSET1’)
END-EXEC
EXEC CICS
RECIEVE MAP(‘MAP1’)
MAPSET(‘MAPSET1’)
END-EXEC |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If the field is ASKIP and PROT, it cannot be changed while on the screen. So if you want the MDT set, you must set it before sending the map because otherwise it isn't going to be set. Setting an attribute then receiving the map causes the attribute field on the terminal to overwrite the attribute field you just set, so effectively you did nothing. |
|
Back to top |
|
|
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
Thanks Robert... hmm good point , let me try |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
roopannamdhari
when I noted you need to issue send map before receive, I was trying
to get you to see what Ajay and Robert pointed out.
moving data to map area just before you do a receive map is not the
proper way to code. |
|
Back to top |
|
|
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
Thanks to all..
as per your suggestion i set MDT before Sending map and its working fine ... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear it. |
|
Back to top |
|
|
|