Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
logic for using pf7& pf8 keys&occur clause in CICS m

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
elango

New User


Joined: 27 Apr 2005
Posts: 12
Location: chennai

PostPosted: Wed Apr 27, 2005 5:01 pm    Post subject: logic for using pf7& pf8 keys&occur clause in CICS m
Reply with quote

Dear squid_rocks,

Thanks for Ur replay.iam explaing my task clearly.

For example a db2 table consists of employee information?s about 100 records. I want to search the information in this way...

I will give a particular employee number and press pf8 key. Then it should display five records after that record, for example if i enter employee id 51 means it should display all the information in the map from employee id's 51 to 55.Like that if i press pf7 means it should traverse back and display records from 47 to 51 and so on.
For that I want do design a CICS macro in a way that it should hold five rows of information at a time. Here is my another problem that how can we use occur clause in designing maps? I don?t know the above logics.
I need some sample coding for this search logic and also coding for declaration of a CICS map with occurs clause.
Plz help me


Regards
Elango
elango_rs@rediffmail.com
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Thu Apr 28, 2005 7:50 am    Post subject:
Reply with quote

You can use a COBOL program to do this.

Use HANDLE AID Command to fetch the function key. Read 5 records from the current record position. Send the records to screen.
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 do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts How do I define a DB2 plan for a web ... John Poulakos CICS 4 Sat Apr 14, 2018 1:58 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us