what is rediffine clause?in what situation it can use?give me
real time example?



what is rediffine clause?in what situation it can use?give me real time example?..

Answer / naidu sekhar yandrapu

When u want to use same working storage area for different
variables. u must ensure that the space must not use at same
time of program execution.For example perform xyz uses a
space ABCD pic x(9) and it will not be used .then other
part of the program can use that space ABCD.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


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

3 Answers  


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


how to transfer the file from pc to mainframe??

3 Answers  






if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.

5 Answers   TCS,


I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..

2 Answers   EDS,


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


Categories