View previous topic :: View next topic
|
Author |
Message |
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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 |
|
Back to top |
|
|
imvs
New User
Joined: 12 May 2004 Posts: 33
|
|
|
|
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 |
|
|
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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 |
|
Back to top |
|
|
harikrishnanrajeev
EXPERT
Joined: 28 Jan 2004 Posts: 37 Location: Trivandrum
|
|
|
|
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 |
|
|
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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
|
|
Back to top |
|
|
elango
New User
Joined: 27 Apr 2005 Posts: 12 Location: chennai
|
|
|
|
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 |
|
|
elango
New User
Joined: 27 Apr 2005 Posts: 12 Location: chennai
|
|
|
|
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 |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
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 |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
Back to top |
|
|
|