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

CICS Read Syntax


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: Tue Aug 25, 2009 3:35 pm
Reply with quote

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

Global Moderator


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

PostPosted: Tue Aug 25, 2009 3:57 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Aug 25, 2009 4:00 pm
Reply with quote

looks to me that the requirement is to check some user entered data against a list of not allowed values ,
but ...
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Aug 25, 2009 4:10 pm
Reply with quote

Enrico,

You are right, but I want an example syntax for this requirement.

Regards,
Kumar
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Aug 25, 2009 4:14 pm
Reply with quote

really I do not see any issue in it ...

it' s just read a file with some key and act accordingly icon_biggrin.gif

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

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Fri Aug 28, 2009 7:07 am
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 28, 2009 12:30 pm
Reply with quote

Quote:
are you referring to KEYBOARD keys
LOL -- flashhhh.. shhhitt... coffee looks too dark on computer screen ... icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 28, 2009 12:53 pm
Reply with quote

follow on ...

Quote:
but I want an example syntax for this requirement.

shocking question: have You ever written a CICS program icon_question.gif icon_biggrin.gif

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

Global Moderator


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

PostPosted: Fri Aug 28, 2009 5:33 pm
Reply with quote

Quote:
coffee looks too dark on computer screen
Anuj, you're not using enough creamer then .... icon_biggrin.gif
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 PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
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
Search our Forums:

Back to Top