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 is the coding difference between COBOL and CICS.
Can we redefine the field of x(200) to less than 200?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
How to display string in the reverse order using occurs clause?
how we separate the cobol cics statements from cobol&cics programming?
What is the Purpose of POINTER Phrase in STRING command
how to transfer the file from pc to mainframe??
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
Explain call by context by comparing it to other calls.
if someone is using my file,how can i find which user id is using?
when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible
Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?
7 Answers Bank Of America, Mind Tree,