What is the difference between /copy and /include in RPGLE?

Answer Posted / sasikumar c

/copy and /include both are used to add program code to our
program. in ILE program /copy directive expanded by sql
preprocessior, but /include does not expanded by sql code.

Thatis,
/copy program file may have its own embedded sql code.
/include program file cannot have its own embedded sql
code.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1973


what are the various types of device files?

1287


how you get the relative record in a subfile in which cursor is located?

842


What Is The Purpose Of The "n" In The Following Calculation Specification?

889


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2811


list some of the commonly used commands for debugging?

1211


what is the difference between udate and the system date?

1521


WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?

2285


when do you use f-spec. Continuation line ?

1311


what is match field indicator?

1338


what are indicators?

805


what is the difference between packed decimal and zoned decimal?

2656


how to define to define a hidden filed in dspf ?

1034


what is the clp command to access a query/400?

1719


What is the draw back of Procedures? why we are going to Modules?

1463