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

Result

000123
abc

no "-" sign will come bcoze we didnt give like this

01 a pic s9(3) value is 123
01 b pic s9(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

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

632


Can we redefine the field of x(200) to less than 200?

820


what is difference between cobol and cobol/400

21567


What are the different open modes available in cobol?

722


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

2120






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

1908


How you can read the file from bottom?

660


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

811


How to know whether the module is dynamical or statistical?

656


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

710


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


What are the different data types in cobol?

797


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


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

711