01 var1 pic x(10)
01 var2 redefines var1 pic 9(10).

then in procedure division

move 'abcde' to var1 then waht is the value of var1 and var2

Answer Posted / adarsh562

abcde.....
0000000000


. indicates blank

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

858


Explain the configuration section of a cobol program with examples of syntax.

753


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

936


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2034


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1863






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

4190


what is search and searchall?what is the diffrence between them?give an best example?

5874


What are the different open modes available in cobol?

821


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2128


What guidelines should be followed to write a structured cobol prgm?

764


What is link edit in cobol?

858


What do you understand by psb and acb?

752


example for sub strings ? and refernce modifications whit output pls

1947


How many sections are there in data division in COBOL?

792


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

752