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

1.
000123

2.
abc---

Well arthi, here - stands for blank space, correct me if am
wrong

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the esds vsam file formats from cobol programs

635


HOw can I get the negative sign while deduct high value from low value

1797


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

681


What is report-item in COBOL?

713


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2124






What do you understand by psb and acb?

668


How to print 10 to 1 if the input have only 10 digit number?

815


What is rmode(24)

684


how to refer the data field?

1812


What is difference between static and dynamic call in cobol?

781


How can you get the ksds file records into your cobol program?

646


What is the problem of ordered sequential files access?

704


What is the difference between structured cobol programming and object alternativelyiented cobol?

757


What is comp-1 and comp-2?

766


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

748