Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

what is the coding difference between COBOL and CICS.

8 Answers   Cap Gemini,


Can we redefine the field of x(200) to less than 200?

0 Answers  


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?

3 Answers  


How to display string in the reverse order using occurs clause?

4 Answers  


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


What is the Purpose of POINTER Phrase in STRING command

3 Answers  


how to transfer the file from pc to mainframe??

3 Answers  


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)

3 Answers   IBM,


Explain call by context by comparing it to other calls.

1 Answers  


if someone is using my file,how can i find which user id is using?

4 Answers  


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

1 Answers   Patni,


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,


Categories