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

wht will be the value ? and

01 a pic x(6) value is abc
01 b pic x(3)
move a to b

wht will be the value ?

Answer Posted / arthi

1.
000123

2.
abc

Ravi, I guess you didnt mean the '-' as a minus sign in front of 000123, and abc. your answer is not clear enough.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sections are there in data division in COBOL?

668


What is the difference between PIC 9.99 and PIC9v99?

766


What is the use of intialize verb?

735


Give some examples of command terminators?

746


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

631






A table has two indexes defined. Which one will be used by the SEARCH?

744


What is the difference between external and global variables in COBOL?

804


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1219


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

677


What is comp-1 and comp-2?

752


Can you please let me know the centre name of INS certification in Kolkata.

1706


how to refer the data field?

1793


How do you get the data to code the BMS macro?

1466


how do you reference the fixed unblock file formats from cobol programs

698


How are the next sentence and continue different from each other?

753