MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

file reading

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
drajasekharreddy
Beginner


Joined: 08 Apr 2004
Posts: 16
Topics: 14

PostPosted: Mon May 31, 2004 6:34 am    Post subject: file reading Reply with quote

Hi,

there is one sequential file having 100 records. for reading this file thru cobol program it is taking 5 minits. after 10 years same file and same progarm for reading it is taking more than 5 minits. why it is hapenning like this.

first ofall is this valid question. i think this is not valid question. other wise is there any reason behind that. plz let me know.

Thanx,
Bye,
Raja
Back to top
View user's profile Send private message
souvik_225
Beginner


Joined: 15 May 2004
Posts: 17
Topics: 2
Location: Mumbai , India

PostPosted: Mon May 31, 2004 6:47 am    Post subject: Reply with quote

Is this an interview question??? ... Question

This depends upon so many factors , it is difficult to pinpoint the exact reason. One very common reason could(is) be that the program is not getting the same CPU%. (And this will/can change in 10 secs rather than 10 yrs.)
_________________
Thanks and Regards,
Souvik Upadhyay
Back to top
View user's profile Send private message Yahoo Messenger
Brian
Beginner


Joined: 12 Aug 2003
Posts: 95
Topics: 6

PostPosted: Mon May 31, 2004 7:30 am    Post subject: Reply with quote

First of all how do you know that the same program performed better 10 years ago ?
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Tue Jun 01, 2004 6:49 am    Post subject: Reply with quote

What are the actual figures? From the minimal info you have given if could be taking 5mins exactly 'before' and 5:00.0001 minutes afterwards.

Also, in a program that runs for 5mins approx elapsed, the time taken to read a 100 record file would typically be insignificant (unless it was a tape mount delay possibly).
What else does this program do?
Back to top
View user's profile Send private message
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Jun 01, 2004 7:37 am    Post subject: Reply with quote

I am sure this is an interview question. I have been hearing of similar questions being asked in interviews. Dont understand what can be the motive of interviewers in asking such meaningless, vague questions that can never have a specific answer.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Jun 01, 2004 3:58 pm    Post subject: Reply with quote

Interviewers might ask questions such as this because users will ask this same thing of you on the job! "My job ran 3 hours last night...what did you guys do?"

As a programmer, do you have a grasp on the various things that can affect elapsed time? Could you explain this to a user?

The interviewer may either be insane.... or a genius!

Regards,
Bill
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group