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 can i see junk values in dclgen or in hostvariable of comp ?

2532


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

984


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

688


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


Why occurs cannot be used in 01 level in COBOL?

703






) what is the difference between AID and HANDLE AID?

1621


What is the usage of comp fields in cobol?

645


i want a program using by if, evaluate , string, unstring, perform, occurs?

4030


explain sorting techniques in cobol program?

678


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

731


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2087


What is the difference between goback, stop run and exit program in cobol?

906


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)?

618


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8119


What is the local-storage section?

668