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

************************************************************
************************************************************
************************************************************
It will give compilation error.

Is This Answer Correct ?    0 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

631


How arrays can be defined in COBOL?

658


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5353


What is an in line perform? When would you use it? Anything else you wish to say about it.

637


example for sub strings ? and refernce modifications whit output pls

1833






Explain what you understand by passing by value.

685


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2716


What is the difference between PIC 9.99 and PIC9v99?

769


In COBOL programming, what is PERFORM? What is VARYING?

664


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

646


what are decleratives in cobol?

1818


Mention the guidelines to write a structured cobol program?

603


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2320


Write a program to enter and display the names of students in a class using the occurs clause.

640


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

697