What is the use of primary files in DB2/400?

1520 pts.
Tags:
DB2
DB2/400
DB2/400 primary files
whats the use of primary file any real example please? in what scenario should we prefer to fully procedural file?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

Primary files are used to force the RPG program to use the program cycle – these days they are very rarely used.

Using the program cycle can be very confusing to people used to structured programming – best to avoid it as much as possible – in other words don’t use it unless you know what you’re doing and have a good reason for using it. (I can’t think of one right now).

Regards,

Martin Gilbert.

Absolutely right .. unless you need to do maintenance on existing programs.
The primary file is automatically read by the cycle.

Phil

Discuss This Question:  

 
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

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