can I copy book which contain db2 statment in procedure
divion?
Answers were Sorted based on User's Feedback
Answer / vikas pujar
No. Because the Precompiler will comment out all the SQL statements and replace them with equvi call statements. And if use DB2 statment in Copy ,during pre compilation the statements in the copybook wont be commented out.. they will get expanded during compliation of modified source code and we will get Complilation error there.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / siddhesh
You can if you are using an integrated COBOL compiler. In
an intergrated COBOL compiler the DB2 precompiler, CICS
translator and the COBOL compiler work together. You can
CICS and/or DB2 statements in a copybook.
If you are using a standalone compiler, you cannot include
SQL statements in COPY.
| Is This Answer Correct ? | 6 Yes | 0 No |
what is rediffine clause?in what situation it can use?give me real time example?
Syntax for JCLLIB & JOBLIB???
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How to remove 2 duplicate records and copy only one using job control language?
I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."
What is SET TO TRUE all about, anyway?
what is label record is standard or omitted in file description of data division?
What is the difference between static call & Dynamic call?
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
How to read a 100 record from a file through cobol?
in the TIME parameter we r giving hours r minutes