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



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

Answer / 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

More IBM AS400 AllOther Interview Questions

What is the default access path of a file?

0 Answers  


What are the types of Signature validation?

1 Answers  


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

0 Answers   BlackRock,


what is the purpose of the indara keyword?

1 Answers   IBM,


The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...

0 Answers  






what is the use of UNIQUEUE KEY WORD? what is the difference between PFILE AND REF?

2 Answers  


what is the maximum number of parameters allowed in clp?

2 Answers   IBM,


what is sflinz and sflrna?

0 Answers   IBM,


how to get no of records in file in rpg with out cl cmd

2 Answers   iGate,


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx

2 Answers  


What is a Device file?

1 Answers  


An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can we update this file? Please explain?

3 Answers  


Categories