01 a pic 9(6) value is 123456
01 b pic 9(3)
move a to b

wht will be the value ?

Answers were Sorted based on User's Feedback



01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / ravi

456

Is This Answer Correct ?    27 Yes 0 No

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / kiran

456

Is This Answer Correct ?    6 Yes 0 No

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / nilesh

456 would be the value in b.

Is This Answer Correct ?    3 Yes 0 No

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / itha

a will be 123456
b will be 456

Is This Answer Correct ?    2 Yes 0 No

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / pradip

ravi is right

Is This Answer Correct ?    2 Yes 1 No

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ? ..

Answer / shweta

456 would be in B

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

In EBCDIC, how would the number 1234 be stored?

2 Answers   TCS,


Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.

2 Answers  


How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?

11 Answers   Wipro,


what is a zoned decimal data type and how it will be stored?

2 Answers   IBM,






Minimum how many Number of Paragraphs are there in ID- Divison?

7 Answers   IBM,


I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.

1 Answers  


What is difference between static and dynamic call in cobol?

0 Answers  


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?

5 Answers   Amdocs,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


What is XDC ?

3 Answers   Cap Gemini, IBM,


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


Categories