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

after executing this program output will be

b value is 000123
and
b value is abc
there is no blanks after abc in b, because we have taken
its length as 3 in pic clause.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2711


When is inspect verb is used in cobol?

663


How do you differentiate between cobol and cobol-ii?

640


Discuss about changing dataset name in proc.

751


What are the different types of condition in cobol and write their forms.

647






i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2090


Why occurs cannot be used in 01 level in COBOL?

703


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1639


) How do u handle errors in BMS macro

1491


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

670


What is the difference between perform … with test after and perform … with test before?

861


What do you understand by psb and acb?

659


example for sub strings ? and refernce modifications whit output pls

1829


What is the difference between a binary search and a sequential search what are the pertinent cobol?

721


Define cobol?

850