pf7 and pf8 logic. first wnen i press pf7 first five
records has to be displayed .second time when i press pf7
next five records to be displayed. what was the logic. give
clear explination.

Answer Posted / mohamed farook

Can be do it in 2 way

1, By using the TSQ

2, By using array, define a variable ( occurs clause of 5 )
first read the first five records from the vsam files, when
its reaches the 5th records store the last record in the
variable( linkage section ) and throw the map and populate
the five records in the screen, handle the logic to start
reading the file with the last processed record this way
when pf7 is pressed it start reads from the last processed
record.

If you want i can give you the sample code

Farook

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is length = 0 sufficient to ascertain that the field has been modified?

742


What are the types of the dfhmdf present in the cics?

752


What does the 'cedf:cics' transactions do?

770


what is the difference between a return with transid and xctl? For example program. A is issuing return with transid to program b. Program a. Is isssuing xctl to program b?

903


Can you define mapset?

779






In a CICS program, how will you read a VSAM file?

857


How ENQ and DEQ used in CICS?

1119


What is the cics command that is used to access current date and time?

770


Explain how do you set the mdt option to on status, even if data is not entered?

813


What is mainframe cics?

803


how can you prevent more than one user from accessing the same transient data queue?

816


when an apllication is invoked via the exec cics start command with the from option, how does the application gain access to the common area?

842


what are the six different type of argument values in cobol that can be placed in various options of a cics command?

1019


what is the difference between a package and a plan. How does one bind 2 versions of a cics transaction with the same module name in two different cics regions that share the same db2 subsystem?

795


Define cebr?

745