Explain about Redefines cluse?

Answer Posted / avinanda mukherjee

If the example is-

01 WS-NUM1 PIC 9(1)

01 WS-NUM2 REDEFINES WS-NUM1 PIC X(2).

If you MOVE '10' to WS-NUM2,

DISPLAY WS-NUM1 will show 0 (Numeric) while

DISPLAY WS-NUM2 will show 10 (charecter).

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2340


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

2109


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

712


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


Have you used comp and comp-3 in your project? And how?

2012






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

737


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

1846


Write a program to explain size error.

679


What is link edit in cobol?

776


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


Name the divisions, which are available in a cobol program?

687


What is the usage of comp fields in cobol?

661


what is the use of outrecord?

1774


In COBOL, what is the different between index and subscript?

763


what are decleratives in cobol?

1831