RPG: AS/400 question

440 pts.
Tags:
AS/400
RPG
AS/400 question 10: In RPG 1 I have 6 parameters and in RPG2 I have 9 parameters being passed. I have RPG 3 which processes the request based on RPG1 and RPG2. if RPG 1 is called then 6 parameters will be received and the rest 7,8,9 should be initiated to Zeroes. If RPG 2 is called then all 9 parameters have to be received. Without getting a decimal data error and without loosing any parameters data how can I accomplish this task? Thanks.

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: 9  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
    Sorry, the question isn't written in a way that makes sense. Write some pseudo-code that illustrates the calls and some discussion might be possible. -- Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    Check out the %parms BIF.  I believe it will allow you to gracefully handle the situations descibed in your question.
    6,765 pointsBadges:
    report
  • philpl1jb
    Expecting to have this response wiped out.  You've just wasted this interviewer's script of questions.  Do you think he/she will trust you or hire you now?  
    50,860 pointsBadges:
    report
  • TomLiotta
    You’ve just wasted this interviewer’s script of questions.   That might be a good thing. I see a lot of comments about interview questions, and rarely are the questions of much value.   A number of years ago, I went through an interview that included questions from a manager of a RPG developer group. One question asked for a list of op-codes that related to "unstructured programming". At the time of being asked, I couldn't think of any.   It was the only item I messed up. And afterwards I asked the manager what the question was after. She mentioned a couple op-codes like CABEQ, and I realized that I hadn't used the things she mentioned in such a long time that I'd essentially forgotten them.   Does such a question really have much value? How is an answer of "I don't know" graded?   In general, discussion around an interview question seems valid. A clearly stated 'answer' to an interview question wouldn't be, IMO.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    The quality of the question doesn't matter.  Your answers don't matter.The relationship that existed between the interviewer and the interviewee has been damaged by the interiewee posting these questions.
    50,860 pointsBadges:
    report
  • TomLiotta
    That is a possibility, one worth mentioning. -- Tom
    125,585 pointsBadges:
    report
  • Michael Tidmarsh
    Phil, I've already talked to the user and he told me he was just looking to get more information after the interview to continue learning about AS/400. It was also his first time on the site too.
    33,310 pointsBadges:
    report
  • philpl1jb
    So then next person interviewed will have all the answers. There are boards that post - interview questions and answers  - test questions and answers  - certification questions and answers ...we haven't been one of those.
    50,860 pointsBadges:
    report
  • philpl1jb
    I have tried to know absolutely nothing about a great many things, and I have succeeded fairly well.    - Robert Benchley
    50,860 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