IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Stop entries in CICS online screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Dec 09, 2009 5:37 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 09, 2009 5:55 pm
Reply with quote

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
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Dec 10, 2009 10:09 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Dec 10, 2009 1:13 pm
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
valyk

Active User


Joined: 16 Apr 2008
Posts: 104
Location: South Carolina

PostPosted: Thu Dec 10, 2009 10:43 pm
Reply with quote

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
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Sun Dec 13, 2009 4:15 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Dec 13, 2009 6:26 pm
Reply with quote

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
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Sun Dec 13, 2009 8:52 pm
Reply with quote

Thanks TANSTAAFL..
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Dec 13, 2009 9:19 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top