View previous topic :: View next topic
|
Author |
Message |
kumar1234
New User
Joined: 06 Nov 2007 Posts: 84 Location: bangalore
|
|
|
|
Hi All,
I have a requirement where I have to stop the user from entering the online screen for a particular key 750 and 753, where my client wants me to create a VSAM file and add those keys into it and the logic must be such that to Read from this VSAM file to stop the user entering into the screen for these keys.
Can anyone give me a sample syntax logic so that I can refer when I start my coding changes.
Thanks in Advance....
Kumar. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What you are wanting is not at all clear from your description -- are you referring to KEYBOARD keys or VSAM keys when you mention "key" in your problem statement? However, you need to be aware that once CICS displays a screen, you have no control over what is keyed into a field so you cannot prevent someone from entering any value they want into a field. You can specify the field is numeric to force only numbers into the field, but you must code up your program to handle any specifics of the logic such as not processing certain values against a VSAM file. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
looks to me that the requirement is to check some user entered data against a list of not allowed values ,
but ... |
|
Back to top |
|
|
kumar1234
New User
Joined: 06 Nov 2007 Posts: 84 Location: bangalore
|
|
|
|
Enrico,
You are right, but I want an example syntax for this requirement.
Regards,
Kumar |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
really I do not see any issue in it ...
it' s just read a file with some key and act accordingly
after the receive map
read the black list file and reverse the usual process
if not found keep processing the transaction
if found send a message to the user and leave |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Kumar,
Quote: |
You are right, but I want an example syntax for this requirement.
|
Are you asking for someone to do your work for you ? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
are you referring to KEYBOARD keys |
LOL -- flashhhh.. shhhitt... coffee looks too dark on computer screen ... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
follow on ...
Quote: |
but I want an example syntax for this requirement. |
shocking question: have You ever written a CICS program
should not be that dificult
getting a value from the screen thru a bms map,
reading a file using the value as the key
return a message telling found/not found
is probably the first assigment of any cics basic training |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
coffee looks too dark on computer screen |
Anuj, you're not using enough creamer then .... |
|
Back to top |
|
|
|