Interview Question

30 pts.
Tags:
program communication
Program optimization

I was asked 2 questions in an interview, and I still don't know the answers: 

1.  If you had a program where you had to read every record in the file, and there were millions of records in the file, how would you make the program faster?  Any hints?

2.  How can one program running in batch access the LDA of another program running in batch?

I would just like to know how an expert would have answered these questions.  Thanks!! 



Software/Hardware used:
AS400/RPGIV

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I've posted twice before against this question, but nothing has shown up for a couple hours or so. Sometimes it just takes a while. -- Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Third try for this comment...   More info is needed. There are no correct answers yet. Besides, we shouldn't post direct answers to questions used in interviews. That wouldn't make us popular with our employers. For #1, what's available to work with? Is the SQL Dev Kit installed, or should it be done natively? What system elements are allowed to be changed? Database? Work management? Authorities? And what has previously been done, i.e., how is the program currently structured? (Is it currently RPGIII?) For #2, the question is incorrect. Programs don't have LDAs; jobs have LDAs. Is the intent of the question that a program should access the LDA of a different job? What is the OS version? (Best methods changed at V5R4.) Are the jobs concurrent? Does 'access' mean read or write? Don't hesitate to ask clarifying questions. No project has everything answered at the start. One big problem with interview questions is that you need to grasp quickly what the interviewer is looking for in 'this' specific interview. Is direct technical knowledge a higher priority than the methodology used in approaching and resolving a problem? Responding appropriately can be critical. That requires noting details of the interviewer. Is the interview conducted by an HR person simply following a script? Or is it done by a potential technical manager and/or coworkers? A few seconds spent at the beginning demonstrating personal interest in the interviewer can go a long way towards setting the tone. Never give up the right to interview the company just as much as you are being interviewed. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following