What is the difference between copy and include in cobol?
Answer / srinivas
As far as I know, we use INCLUDE in COBOL-DB2 programs to copy the contents of the DCLGEN to the program. The only difference between INCLUDE and COPY is that while INCLUDE is executed at pre-compile time (by the SQL compiler), COPY is executed at compile time(by the COBOL compiler)
Is This Answer Correct ? | 0 Yes | 0 No |
In COBOL programming, what is PERFORM? What is VARYING?
how do you reference the ksds vsam file formats from cobol programs
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?
In an EVALUATE statement, can I give a complex condition on a when clause?
What is the difference between CALL BY VALUE and CALL BY CONTENT?
study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
HOw can I get the negative sign while deduct high value from low value
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
wht is the difference between goto and perform stmts
What is the difference between comp and comp-3?