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
 

 

To Stop entries in CICS online screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: To Stop entries in CICS online screen
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: 7989
Location: Bellevue, IA

PostPosted: Wed Dec 09, 2009 5:55 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Dec 10, 2009 1:13 pm    Post subject: Reply to: To Stop entries in CICS online screen
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    Post subject:
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    Post subject: CICS dynamic call to fetch user id
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: 7989
Location: Bellevue, IA

PostPosted: Sun Dec 13, 2009 6:26 pm    Post subject:
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    Post subject:
Reply with quote

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

REXX Moderator


Joined: 13 Mar 2006
Posts: 1226
Location: Israel

PostPosted: Sun Dec 13, 2009 9:19 pm    Post subject: Reply to: To Stop entries in CICS online screen
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    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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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