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

How to implement the pageup / pagedown logic in PL/I program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunk

New User


Joined: 16 Mar 2006
Posts: 1

PostPosted: Thu Jan 10, 2008 2:23 pm
Reply with quote

Hi ,

I wanted to know how can we implement the Page up and Page down logic in a PL/1 program .

I am trying to display data's in an online screen . The data's are present in an IMS table . If the no of records retrived is more than the maximum number if lines that can be displayed in the screen , then we need to enable the page down logic so that by pressing a key we can display the remaining records .

In DB2 , we use cursor to implement the same . Similarly do we have any logic in PL/I - IMS programming to implement the same .

Thanks ,
Back to top
View user's profile Send private message
Mistermind

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Sun Mar 16, 2008 2:23 am
Reply with quote

You cannot be sure exactly how many times you need to page down, and it would be wasteful of I/O to prepare for the maximum number of browse forward.

Say if your screen displays 24 segments of IMS, then always read the first 24 records and populate the screen. At the same time read the next 24 segments and store in a TSQ. If the user come back DFHAID=PF8, then populate the screen with 24 TSQ records, then read ahead to the next 24 segments, in readiness for the user's next PF8 without waiting. If the user then develops an appetite for PF7 backwards, then more work at more cost will be needed.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top