can we use COPY statement in w-s section? how?

Answers were Sorted based on User's Feedback



can we use COPY statement in w-s section? how?..

Answer / suresh ramaiyan

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

can we use COPY statement in w-s section? how?..

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

can we use COPY statement in w-s section? how?..

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

Post New Answer

More COBOL Interview Questions

How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY 'MAIN-PARA' PERFORM SECTION-A. STOP RUN. SECTION-A. PARA-A1. DISPLAY 'SECTION A PARA A1'. PARA-A2. DISPLAY 'SECTION A PARA A2'.

4 Answers  


a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?

2 Answers  


when COMP-3 is preferrable?

3 Answers   Patni,


1) can we display the index?

3 Answers   ADP, IBM,






What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


What are ISOLATION LEVELS? Where do we need to specify them?

3 Answers   EXL,


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


What is the reference modification.

2 Answers  


what happens if parmparameter passes zero bytes to the program

0 Answers   HSBC,


01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2

9 Answers   HSBC,


How are the next sentence and continue different from each other?

0 Answers  


Categories