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 / ravi

Answer to first question is -000123
and answer to second question is -abc

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the rrds file formats from cobol programs

754


IF I mention stop run in CICS what happens?

1863


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

676


Which mode is used to operate the sequential file?

638


What is rmode(any) ?

659






Why is it necessary that file needs to be opened in I-O mode for REWRITE?

711


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1782


What is the difference between comp and comp-3 usage?

651


In COBOL programming, what is PERFORM? What is VARYING?

650


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2639


) How do u handle errors in BMS macro?

1403


What are the different rules to perform a Search?

595


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

783


What is amode(31)

702


What is the difference between comp and comp-3?

672