what happens when a copybook variables are declared using
include statement ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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.
Why occurs can not be used in 01 level ?
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.
How do we get current date from system with century in COBOL?
Difference between array and sub-script ?
What is the difference between copy and include in cobol?
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
Have you code any new programs in COBOL ? What is the functionality of the programs?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
COMP?
If we use GO BACK instead of STOP RUN in cobol?
what happens of we dont give time stamp in precompilation process