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
 

 

CICS Read Syntax

 
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: Tue Aug 25, 2009 3:35 pm    Post subject: CICS Read Syntax
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: 7932
Location: Bellevue, IA

PostPosted: Tue Aug 25, 2009 3:57 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Aug 25, 2009 4:00 pm    Post subject: Reply to: CICS Read Syntax
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    Post subject: Reply to: CICS Read Syntax
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Aug 25, 2009 4:14 pm    Post subject: Reply to: CICS Read Syntax
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    Post subject:
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

Senior Member


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

PostPosted: Fri Aug 28, 2009 12:30 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Aug 28, 2009 12:53 pm    Post subject: Reply to: CICS Read Syntax
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: 7932
Location: Bellevue, IA

PostPosted: Fri Aug 28, 2009 5:33 pm    Post subject:
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    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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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