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

to find the total no. of times a transaction has run per day


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Fri Jun 18, 2004 10:21 am
Reply with quote

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 icon_lol.gif
Back to top
View user's profile Send private message
imvs

New User


Joined: 12 May 2004
Posts: 33

PostPosted: Fri Jun 18, 2004 9:51 pm
Reply with quote

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
Back to top
View user's profile Send private message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Sat Jun 19, 2004 10:46 am
Reply with quote

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 icon_lol.gif
Back to top
View user's profile Send private message
harikrishnanrajeev

EXPERT


Joined: 28 Jan 2004
Posts: 37
Location: Trivandrum

PostPosted: Mon Jun 21, 2004 3:27 pm
Reply with quote

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.
Back to top
View user's profile Send private message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Mon Jun 21, 2004 3:36 pm
Reply with quote

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
icon_razz.gif
Back to top
View user's profile Send private message
elango

New User


Joined: 27 Apr 2005
Posts: 12
Location: chennai

PostPosted: Wed Apr 27, 2005 9:23 am
Reply with quote

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
Back to top
View user's profile Send private message
elango

New User


Joined: 27 Apr 2005
Posts: 12
Location: chennai

PostPosted: Wed Apr 27, 2005 9:48 am
Reply with quote

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 icon_lol.gif

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

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Tue Aug 16, 2005 5:26 pm
Reply with quote

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 icon_lol.gif

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
Back to top
View user's profile Send private message
radhakrishnan82

Active User


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

PostPosted: Wed Aug 17, 2005 11:08 am
Reply with quote

For paging concept in cics (query 3),hope this helps....

ibmmainframes.com/viewtopic.php?t=5032&highlight=
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top