what happens when a copybook variables are declared using
include statement ?

Answers were Sorted based on User's Feedback



what happens when a copybook variables are declared using include statement ?..

Answer / shaan

Include is a precomplier statement and so the variables
would be expanded during precompilation time rather than at
compilation time.

Is This Answer Correct ?    14 Yes 1 No

what happens when a copybook variables are declared using include statement ?..

Answer / talluri

copy and include stmt are prediffiend texts, but copy will
expand compilation time, but include will expand
precompilation time

correct me if any thing wrong

Talluri

Is This Answer Correct ?    0 Yes 0 No

what happens when a copybook variables are declared using include statement ?..

Answer / chandrababu naidu

we should write include in between "exec and end-exec",
only precompiler will identify include.

working-storage section.
copy emptable.
or
exec sql
include emptable
end-exec.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


How do we get current date from system with century in COBOL?

0 Answers   Winsol Solutions,


Difference between array and sub-script ?

0 Answers   HCL,






What is the difference between copy and include in cobol?

1 Answers  


What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES

7 Answers   TCS,


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


COMP?

2 Answers  


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


what happens of we dont give time stamp in precompilation process

2 Answers  


Categories