Logic behind F7 and F8 keys



Logic behind F7 and F8 keys

Postby raghuvanshi » Sun Dec 09, 2012 11:57 am

Hi,
In an interview I was asked "tell the logic behind F7 (up) and F8(down) keys?"
I answered "I am afraid that I am unaware of that sir"

Any suggestion on this are welcome.
Thanks
raghuvanshi
 
Posts: 43
Joined: Tue Dec 07, 2010 5:32 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Logic behind F7 and F8 keys

Postby enrico-sorichetti » Sun Dec 09, 2012 1:05 pm

the question as posed is bit foggy.

why the choice of PF7/PF8 for scrolling ?

what code is invoked when one of those key is pressed ?

WHAT APPLICATION is the interviewer referring to ?

as You see, if You want good answers You need to ask good questions :mrgreen:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Logic behind F7 and F8 keys

Postby raghuvanshi » Sun Dec 09, 2012 1:15 pm

Well I presented the question in the way it was asked to me,no additions from my side.
Thanks
raghuvanshi
 
Posts: 43
Joined: Tue Dec 07, 2010 5:32 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Logic behind F7 and F8 keys

Postby BillyBoyo » Sun Dec 09, 2012 3:31 pm

You're missing what enrico is saying.

Without knowing specific application details, there is no way to answer the question, other than "they could do whatever you like". PF means "Program Function" . The function for any PF-key is whatever that, particular, specific program provides.

Without knowing anything, you could "guess" that PF7/8 are to present the previous/next logical screen, but you should tell this to the interviewer with the rest of the explanation.

What does PFn do? Whatever I (or a program) tells it.

These users thanked the author BillyBoyo for the post:
raghuvanshi (Sun Dec 09, 2012 5:43 pm)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Logic behind F7 and F8 keys

Postby sinmani » Tue Apr 16, 2013 11:00 am

I think the interviewer must be trying to ask the scroll logic using the PF7/PF8 keys.
While browsing the file the system will throw the number of records which it can accommodate on screen. and store the key of the first and last record which is displayed.
Then on pressing PF8 it will display the next set of records starting from the next record which was last displayed.
In case of PF7 it will display the previous set of records than the first one which was displayed.
-----------------------------------------
As long as you think you are a student, you are doing well.
The day you consider yourself as the master of the game..........well
sinmani
 
Posts: 93
Joined: Thu Mar 22, 2012 10:02 am
Has thanked: 14 times
Been thanked: 0 time

Re: Logic behind F7 and F8 keys

Postby NicC » Tue Apr 16, 2013 12:23 pm

the system will throw the number of records

The system does not THROW anything. It displays it. THROW is NOT mainframe terminology.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Logic behind F7 and F8 keys

Postby sinmani » Tue Apr 16, 2013 12:27 pm

NicC wrote:
the system will throw the number of records

The system does not THROW anything. It displays it. THROW is NOT mainframe terminology.


Great
-----------------------------------------
As long as you think you are a student, you are doing well.
The day you consider yourself as the master of the game..........well
sinmani
 
Posts: 93
Joined: Thu Mar 22, 2012 10:02 am
Has thanked: 14 times
Been thanked: 0 time

Re: Logic behind F7 and F8 keys

Postby sinmani » Tue Apr 23, 2013 3:57 pm

There are other methods also. Like using a TSQ.
-----------------------------------------
As long as you think you are a student, you are doing well.
The day you consider yourself as the master of the game..........well
sinmani
 
Posts: 93
Joined: Thu Mar 22, 2012 10:02 am
Has thanked: 14 times
Been thanked: 0 time


Return to Interview Questions

 


  • Related topics
    Replies
    Views
    Last post