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

which are the figurative constants used in rpg?

845


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

554


how can I control the way a remote browser uses its cache?

611


WHAT IS FERERENTIAL INTRIGRITY ?

1112


what are all the contents of subfile?

995






What is file information data structure(infds) in as400?

975


what is maximum number of arrays allowed in rpg?

1189


Difference Between Call & Sbmjob?

778


under given circumstances, my cgi should link to another site. How to implement this?

580


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

2185


what is the maximum number of files allowed in rpg?

942


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1008


what is arrival sequence?

1115


any one have give AS400 study material? pls pass it to gopalsai789@gmail.com

1231


how do you specify the number of records to roll in a subfile ?

1254