can we use COPY statement in w-s section? how?
Answers were Sorted based on User's Feedback
I believe, level numbers won't take place while including the copy books in cobol programs.
Here is an example:
01 INPUT-RECORD.
COPY INRECOPY.
where INRECOPY is member name of the copy book library, which is contains group of cobol declarations.
Please correct me, if I'm wrong.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / nag(igate)
Hi sravani, this is not CICS question.
yes, we can used the COPY statement is ws-section,
because the COPY statement will expanded at the
compilation time.
01 COPY MEM1.
the MEM1 can contains the variable declartion to the files
in program
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sravani
yes. for copying symbolic map,dfhaid,dfhdmsca we r copying in the working storing storage section
| Is This Answer Correct ? | 0 Yes | 2 No |
What will happen if we generate GDG +2 version instead of +1 version?
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
Describe the cobol database components?
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
i need a small 3d program using inline and outline.
Why would you use find and get rather than to obtain?
What are various search techniques in cobol? Explain.
how can i see junk values in dclgen or in hostvariable of comp ?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
what happens if we dont close cursor in db2-cobol pgm?
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?