write the logic for PAGEUP and PAGEDOWN by using psuedo
conversatation technique?

Answers were Sorted based on User's Feedback



write the logic for PAGEUP and PAGEDOWN by using psuedo conversatation technique?..

Answer / ak

Coding is not possible in this forum. Here is the logic.
Suppose you want you display 10 items at a time on the
scren.
1 Declare an array of occurance 10.
2 Read-Next the file and load the records on Array.
3 Send data in the to screen.
4 If user pressed PF8. Take the last record(i.e. 10th in
our case) and perform READ-NEXT from last record onwards.
Store the records on array and send them to screen.
5 If user pressed PF7. Take the last record(i.e. 1st in our
case) and perform READ-PREV from first record onwards.
Store the records on array and send them to screen.

Is This Answer Correct ?    7 Yes 3 No

write the logic for PAGEUP and PAGEDOWN by using psuedo conversatation technique?..

Answer / anonymous

If current page number is 1
Read TSQ
‘TOP OF DATA, NO MORE RECORDS TO DISPLAY’
If current page number is not 1
Subtract ‘1’ from the current page
Read TSQ
If reading TSQ successful,
‘PREVIOUS SCREEEN DISPLAYED’ o
Return back processing

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More CICS Interview Questions

What is the pic clause for the hhmmss type of data fields?

0 Answers  


How is dynamic memory allocated within a CICS application program?

1 Answers   IBM,


What is the meaning of the ENQ and DEQ commands?

1 Answers   IBM,


What is the difference between START and XCTL ?

3 Answers   IBM,


What are the CICS commands associated with transient data queue processing?

1 Answers  






How to get the sign-on user-id from an application program?

1 Answers  


How To Retrive The VSAM Datasets in CICS application programs?

1 Answers   Accenture, IBM,


Explain how and where is the twa size set?

0 Answers  


Can you explain primary aspect of cics?

0 Answers  


What is trigger level in the context of TDQs?

2 Answers   IBM,


Hi Folks, In the Map, one field is having attribute FSET. I want to FSET OFF of that field through program. Can any body let me know the process? Thanks Praveen

3 Answers  


Why doesn?t CICS use the Cobol Open and Close statements ?

2 Answers  


Categories