Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
lakshmibala

New User

Joined: 16 Jun 2004
Posts: 47

 Posted: Fri Jun 18, 2004 10:21 am    Post subject: to find the total no. of times a transaction has run per day hi everybody, now i have a very interesting question and this was an interview one. 1. if all the cics users are running the same transaction will they be assigned the same task num or different ones?. 2.how to find the total no. of times a particular transaction has run per day? 3.give the code for scrolling forward and backward in cics region? bye, lakshmi.b

imvs

New User

Joined: 12 May 2004
Posts: 33

 Posted: Fri Jun 18, 2004 9:51 pm    Post subject: 1) different task numbers will be assigned 2)If a program is pointed to only one transacion you can use CEMT I PROGRAM and check for the USECOUNT which will tell you the total number of times the module has been used since the start of the current CICS session. Otherwise you have to use third party tool Omegamon or you have to use COLLECT STASTICS function. 3) can you furnish more details
lakshmibala

New User

Joined: 16 Jun 2004
Posts: 47

 Posted: Sat Jun 19, 2004 10:46 am    Post subject: to find the total no of transactions run per day hi imvs i couldnt get the answer for the num of transactions run per day. any how thanks for the answer my 3rd question was write the logic for scrolling forward and backward keys(f7 & f8) in maps hope u r clear now bye lakshmi
harikrishnanrajeev

EXPERT

Joined: 28 Jan 2004
Posts: 37
Location: Trivandrum

 Posted: Mon Jun 21, 2004 3:27 pm    Post subject: Hi, I am giving here the logic for scrolling up and down. in the main program section maintain a counter variable initialize it to 1. eg . move 1 to counter. Scrolling up... ****************************************************** use a perform loop eg. i=1 perform varying row from counter by 1 until ( counter >= counter+10 ) pass the values to map fields eg. move varible1 to mapfieldo(i) move varible2 to mapfieldo(i) move varible3 to mapfieldo(i) add 1 to i. end-perform. move row to counter. ********************************************************** Here a loop is given. The counter initial value is 1( assigned when the prog was started). eg. if u want to take data from a DB or TSQ and want to place first 10 records in the map, then the loop will be perform varying row from counter by 1 until ( counter >= counter+10 ) if counter is 1 ( initially ) then perform varying row from 1 by 1 until ( 1 >= 11 ) at last once out of the loop u r moving the row value to counter ie, counter=11. Then move the counter value to DFHCOMMAREA and send the map. So that u can receive it for the next browse. If u want to browse to the next page. receive the DFHCOMMAREA value (which should be of the same pic as our counter) to counter . then the perform would be like perform varying row from 11 by 1 until ( 11 >= 21 ) at the end again pass the counter value which is 21 to DFHCOMMAREA. ****************************************************** once u have the counter in DFHCOMMAREA .. scrolling back is very easy ..just reduce the number by 20 and call the loop. Eg. if u r in 2nd page the counter value is 21. If u want to scroll to first page and display first 10 records, reduce the counter value by 20 and the result is 1. call the loop and its perform varying row from 1 by 1 until ( 1 >= 11 ) here am just giving u an idea, pls do contact for more clarification regards hari.
lakshmibala

New User

Joined: 16 Jun 2004
Posts: 47

 Posted: Mon Jun 21, 2004 3:36 pm    Post subject: to find the total no of transactions run per day hi hari, thanks so such for ur reply. but what i want is actually the page up and page down logics. in mainframes we use keys f7 & f8 for paging up and down. we want the codings for this logic. please do reply for my question bye, lakshmi
elango

New User

Joined: 27 Apr 2005
Posts: 12
Location: chennai

 Posted: Wed Apr 27, 2005 9:23 am    Post subject: we want the coding for this search logic. records from the table can be fetched by using pf7 key for backward search and pf8 key for forward search from any given record number. can any one help us as much as possible.. regards elango
elango

New User

Joined: 27 Apr 2005
Posts: 12
Location: chennai

 Posted: Wed Apr 27, 2005 9:48 am    Post subject: we want the coding for this search logic. records from the table can be fetched by using pf7 key for backward search and pf8 key for forward search from any given record number. can any one help us as much as possible.. regards elango elango_rs@rediffmail.com
gowtham_srgp

New User

Joined: 09 Jun 2005
Posts: 38

Posted: Tue Aug 16, 2005 5:26 pm    Post subject:

 elango wrote: we want the coding for this search logic. records from the table can be fetched by using pf7 key for backward search and pf8 key for forward search from any given record number. can any one help us as much as possible.. regards elango elango_rs@rediffmail.com

hi..... use the handle aid command to fetch the records of the table. if the table is a cobol table you have to reduce the index value for it. if the table is a db2 table, you do with the where clause.

corrections welcomed..........

gowtham

Active User

Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

 Posted: Wed Aug 17, 2005 11:08 am    Post subject: For paging concept in cics (query 3),hope this helps.... http://ibmmainframes.com/viewtopic.php?t=5032&highlight=
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us