01rec1.
05 a pic 999v99 value 123.12
05 b pic 99v9 value 45.9

02 rec2.
05 x pic 999v99
05 y pic 99v99
05 z pic x(3) value 'abc'

if rec1 is moved to rec2 then what is the value of rec2?

Answers were Sorted based on User's Feedback



01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999..

Answer / sweety

rec2 will be

123124590

Is This Answer Correct ?    7 Yes 3 No

01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999..

Answer / praveen

REC2 will just contain 12312459 , the code was tested

Is This Answer Correct ?    2 Yes 1 No

01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999..

Answer / mahesh satya

123124590abc

Is This Answer Correct ?    1 Yes 1 No

01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999..

Answer / santhosh vayathuri

REC 2 WILL BE

123124591231

Is This Answer Correct ?    1 Yes 2 No

01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999..

Answer / kingmanish

Valur of REC2 would be

12312459abc

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

What is the reference modification.

2 Answers  


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


What is the difference between goback, stop run and exit program in cobol?

0 Answers  


TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr

1 Answers   MNC,






What is the difference between subscript and index?

1 Answers  


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


give the examples of strings in cobol

1 Answers   IBM,


Explain Restart Logic in Cobol?

1 Answers   L&T, Syntel,


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  


Categories