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 |
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
Are you comfortable in cobol or jcl?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between write & move in COBOL?
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.
plz,could any one tell me? what about EBCDIC in cobol?briefly?
how do you reference the printer file formats from cobol programs
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.
How may divisions are there in JCL-COBOL?