difference between external described datastructure and program described datastructure

695 pts.
Tags:
AS/400
Data structures
RPGLE
can any one help me what is the difference between external described datastructure and program described data structure and what is the use of external data structure and, can i use variables of external data structure in another program

Answer Wiki

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

Hi,

An externally described data structure uses an externally described file definition to define the data structure, it is used to retrieve the field definitions from the file at compile time and create a data structure in your program based upon those field definitions.

This can be useful if you need the same data structure in a set of programs. If you need to change the data structure, you can simply change the definition of the file and recompile all the programs that reference it, instead of having to change all the internally defined data structures in the programs.

You can use these *definitions* in another program, but an externally defined data structure is not normally used for storing variables for use between programs. You can, however call a program passing a data structure as a parameter – you can do this with an internallly or externally defined data structure, but remember if you use an externally defined data structure it makes it easier to maintain for multiple programs.

Hope all this makes some sort of sense.

Regards,

Martin Gilbert.

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