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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2340


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5065


What rules are followed by the search verb.

638


example for sub strings ? and refernce modifications whit output pls

1848






State the various causes of s0c1, s0c5 and s0c7.

665


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.

5695


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


For rewrite, why is it mandatory that file needs to be opened?

623


What is the difference between comp and comp-3 usage?

681


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


Define cobol?

866


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


Which is not true about evaluate statement

1605