Help regarding RPG programs

280 pts.
Tags:
AS/400
RPG
RPG Programs
I want to do a project in RPG, here is my concept. I have a specific product which was containing some functionality and this product was used by some customers. I want to code a tool which will show the info like
  1. Full customer info (which functionality were used by customer).
  2. Functionality info (which customers used the specific functionality).
I can do it in static way using display and physical files, but I want it in dynamic way. That means if a new client is added or new functionality is added then my program will also include this without changing or compiling the programs. This is not an assignment. I am new to RPG so I want some assistance on this. Any help is much appreciated.

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: 3  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

    That means if a new client is added or new functionality is added then my program will also include this without changing or compiling the programs.

    You'll need to give at least a couple specific examples of an actual "functionality" that you'd expect to be added.

    Because RPG is a compiled language, a lot of 'framework' kinds of details would need to built-in to the original code. I can imagine various table-driven approaches, but a 'dictionary' of functional components would have to be part of the foundation. Choosing a set of pre-built components would be important.

    Tom

    125,585 pointsBadges:
    report
  • CharlieBrowne

    Simple high level overview

    Table 1 - CUSTMAST (Customer Master) keyed by CUSTNO (Customer Number;

    Table 2 - PRODUCTS (Products file) keyed by PRODNO (Product Number)

    Table 3 - CUSTPROD (Customer and Product file) - Two fields CUSTNO & PRODNO). NON-KEYED. Two LFS: 1-Keyed by CUSTNO, PRODNO  2-PRODNO, CUSTNO.

    Now you can easily find what products a customer has and/or which customers have a specific product.

    The assumption is you have programs to update each of the Master files and a program that updates the CUSTPROD file. 

    41,380 pointsBadges:
    report
  • CharlieBrowne
    Let us know if this helped and/or you need more assistance.
    41,380 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