diffrence between renames and redifnes with examples
Answer Posted / khasim
We can regroup using RENAMES.
02 MM PIC X(2).
02 DD PIC X(2).
02 YY PIC X(2).
66 DATE RENAMES DD TRRU YY.
We can devide an Element to multiple elements using
REDEFINES.
02 DATE1 X(6).
02 DATE2 REDEFINES DATE1.
05 MM PIC X(2).
05 DD PIC X(2).
05 YY PIC X(2).
This is main defference.
Remaining things all know.
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What are various search techniques in cobol? Explain.
What are the different data types in cobol?
What are the rules of the move verb?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
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
How you can characterize tables in cobol?
Define static linking and dynamic linking.
How are the next sentence and continue different from each other?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?