What is the reference modification.

Answers were Sorted based on User's Feedback



What is the reference modification...

Answer / santosh khot

Reference modification is retrieving or Modifying substring
of a string. if Reference modification has a negative value
then Abend Code is soc4, So be care full while using
reference modification
Syntex is Move String(First position, Length) to Var-1.

Is This Answer Correct ?    13 Yes 0 No

What is the reference modification...

Answer / ts nithiyanandan

Reference modification is nothing but moving the part of
value of dataname to other dataname.

01 a pic 9(10).
01 b pic 9(10).

move a(4:5) to b.

i.e., moving from 4th byte to 9th byte to dataname b.
from 4th to 9th is length of 5 bytes.

Is This Answer Correct ?    10 Yes 5 No

Post New Answer

More COBOL Interview Questions

How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  


How to increase the logical record length of existing PS file?

7 Answers  


If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?

8 Answers   CTS,


. How do we cast a variable in COBOL

1 Answers   HSBC,


can we read in input the file with a variable length ? please , how ..could you help me ?

3 Answers   EDS,






what is the use of comp2 ? where can we use it with example ?

3 Answers   Covansys,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,


Under which scenario you would go for a static call as opposed to dynamic call?

5 Answers   TCS,


What is Control Break processing ?

1 Answers   iGate,


how the control comes back from subprogram to mainprogram

3 Answers   IBM,


Categories