View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
My requirement is the if one user inquiring one id c11111 in map. Then the groups associated to user are displayed. Now if the user select one group and entering action code DELG. Then that group will be deleted from c11111. This is fine.
But if user changed c11111 to c22222 in map and select one group
and entering action code DELG, currently that group got deleted from c22222. But for this i have to throw to error message "KEY FIELD HAS CHANGED, PLEASE RE-INQUIRE'.
I know only little about CICS. Any one please help me on this task?
Thanks
R KARTHIK |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
one way to know is to carry it in comm area & check.
To know whether a field on map is changed or not ......... we usually check the length(l) field of that variable.
Correct me if i am wrong. |
|
Back to top |
|
|
prakash271082
New User
Joined: 09 Sep 2005 Posts: 53
|
|
|
|
Hi,
You can set MDT and check it. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI,
I done the follwoing,
LINKAGE SECTION.
01 DFHCOMMAREA.
COPY ULGPA.
COPY DSCU1A.
05 WK-HLD-DSCUS-UID PIC X(08) VALUE SPACES.
EJECT
.
.
.
.
IF DSCUS-USER-ID = WK-HLD-DSCUS-UID
PERFORM 8500-FIND-CURRENT-USERINFO
ELSE
MOVE 'KEY FIELD HAS CHANGED, PLEASE REINQUIRE'
TO ULGPA-TECH-MSG-LINE-1
MOVE 'X' TO DSCU1-ERROR-CD
PERFORM 9100-SET-UP-MSG-LINE-2
END-IF
I want to know whether it is correct.... |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
Code: |
IF DSCUS-USER-ID = WK-HLD-DSCUS-UID
|
1) is this IF para executing after receive map process?
2)is DSCUS-USER-ID your map variable or your moving the value your getting from the map to this variable?
please clarify. tell us more. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
before map send - save the fields in commarea (rakesha.hg pointed this out)
on receive of map - compare saved to current input fields
OR
you can set attributes to NOFSET (not modified) when you send
the map, and then check field lengths when you receive map.
If you are new to CICS, I advise you to spend some time with a little
self study, or possibly attend some CICS programming courses, and
also talk to your peers. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
Quote: |
you can set attributes to NOFSET (not modified) when you send
the map, and then check field lengths when you receive map.
|
Hi earl,
can you please tell me how this is done
I want to clear this doubt of mine from long time? |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
rakesha.hg,
which part do you need additional help with ?
(1)
before map send - save the fields in commarea (rakesha.hg pointed this out)
on receive of map - compare saved to current input fields
(2)
you can set attributes to NOFSET (not modified) when you send
the map, and then check field lengths when you receive map.
(3)
If you are new to CICS, I advise you to spend some time with a little
self study, or possibly attend some CICS programming courses, and
also talk to your peers. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi Earl,
Thanks for your concern,
I did some study regarding that. |
|
Back to top |
|
|
|