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

1850 pts.
Tags:
DB2/400
IBM DB2
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.

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.

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

Following

Share this item with your network: