write the logic for PAGEUP and PAGEDOWN by using psuedo
conversatation technique?
Answers were Sorted based on User's Feedback
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 |
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 |
Explain how and where is the twa size set?
I was asked in HSBC interview following questions: 1. A string was given " techincal seminar on cobol language" Interviewer asked me to calculate the number of vowels in this string.
How to make protected field in BMS invisible through application program?
What is a cics task?
What is transient data?
Which CICS service transaction is used to gain accessibility to CICS control tables?
What are extra partition & intra partition TDQs?
What is the effect of including the TRANSID in the EXEC CICS RETURN command?
What is the content of the PPT entry?
What is an AICA abend?
What will happen if some program tries to process a queue on which an ENQ command has been issued by some other program?
Specify the CICS command used to read a VSAM record starting with prefix ?F?. Code all the relevant options.