View previous topic :: View next topic
|
Author |
Message |
kumar1234
New User
Joined: 06 Nov 2007 Posts: 84 Location: bangalore
|
|
|
|
Hi,
I am working on an online screen where i need to stop users from updating into the online screen for a particular claim no and if the user enters that particular claim no it should display a message. Now I am able to display a message and also from further proceeding of the user, but the problem I am facing is when i enter some details in the unprotected field on the screen it changes and does not roll back the previous details that already existed when I re-enter for the same claim no again, i guess it is updating. Can anyone let me know what logic do I have to use to stop that or suggest some solution from this happening.
Thanks,
Kumar. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
i guess it is updating. |
We have a contender for Inane Post Of The Week!
Why are you guessing? You have the source code. You have the debug facilities. Why are you not debugging the code to find out for sure what is going on? Why are you not reading the code? We do not have the source code, so we can only guess -- unlike you, who are guessing when you have the data available.
Further, your explanation is not clear -- is this one, single account that you want not to update, or is there a condition that any number of accounts could match that would keep them from being updated? If it's one account, just add an IF statement to test for that account and don't perform the update logic. Otherwise, when you put out the message you could set a flag (add it to DFHCOMMAREA) so your program can test the flag and not update any data when the flag is set. This is not advanced computer programming -- it is a pretty basic concept. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Robert,
yes, it appears this forum continues to be a training ground for
novices that do not want to perform any basic debugging steps on their
own. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
....novices that do not want to perform any basic debugging steps on their own. |
/philosophy on
the main issue is that, too often, they do not even start thinking a bit on their own |
|
Back to top |
|
|
valyk
Active User
Joined: 16 Apr 2008 Posts: 104 Location: South Carolina
|
|
|
|
You need to do some upfront validation on your commarea before doing any processing with the data. I would suggest you validate your commarea, then move your commarea to working storage and then perform your update process. If your validation fails, just move your working storage copy of the last commarea back to the commarea and display a message. This will display the data as it originally was and provide an error. Isn't this basic CICS programming? |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Hi ,
Can any one tell if we can dynamically populate USER Id in a CICS subroutine program using CICS EXEC call.
Regards
Arun |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your question is not clear as posted.
If you are wanting to know the user id you can do EXEC CICS ASSIGN USERID(your variable) to retrieve the user id.
If you are wanting to change the user id of the transaction, that cannot be done as far as I'm aware. |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Thanks TANSTAAFL.. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
kumar1234 wrote: |
...Now I am able to display a message... |
Kumar,
If I understand well (I'm not sure about that), you should protect some fields in your map when you send it with the message.
(protect = change field attribute).
arun nehra wrote: |
Can any one tell if we can dynamically populate USER Id in a CICS subroutine |
Arun,
1. If you had searched the forum, you would have found Retreiving CICS userid and password into the program, for example.
2. In what sense your question is related to Kumar's question? If it is not, then please start a new thread! |
|
Back to top |
|
|
|