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 |
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
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'.
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?
when COMP-3 is preferrable?
1) can we display the index?
What does MAXCC 3 means? It is used in one my codes.
What are ISOLATION LEVELS? Where do we need to specify them?
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?
What is the reference modification.
what happens if parmparameter passes zero bytes to the program
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
How are the next sentence and continue different from each other?