Explain about Redefines cluse?

Answer Posted / amit barwa

REDEFINES Clause
Facilitates two or more data-names to point to the same
memory location
e.g.

01 WS-NUM1 PIC X(1)

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

If you MOVE '10' to WS-NUM2,

DISPLAY WS-NUM1 will show 1 while

DISPLAY WS-NUM2 will show 10.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is amode(24)?

684


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

2343


Write down the divisions of cobol program?

673


IF I mention stop run in CICS what happens?

1900


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1964






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

827


What is the difference between comp and comp-3 usage?

683


How are the next sentence and continue different from each other?

768


Describe the cobol database components?

684


What kind of error is trapped by on size error option?

746


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1121


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

890


What is the local-storage section?

687


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8672


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

664