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: 8118
Location: East Dubuque, Illinois, USA

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: 10274
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: 10274
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: 10274
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: 8118
Location: East Dubuque, Illinois, USA

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 How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


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