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 |
comp-3 field occupy?
How do you submit JCL via a Cobol program?
What is difference between COBOL and VS COBOL II?.
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
How do you define a sort file in JCL that runs the COBOL program?
1.What is the limit of linkage section?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Is It Possible to Update or change in VIEW Mode?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?
8 Answers Arigo Infotech, IBM,
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?