Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to implement the pageup / pagedown logic in PL/I program
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
Warnings : 2

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Sun Mar 16, 2008 2:23 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us