what is redefines? where it can be effectively use for the
purpose of memory utilization? give an example?
Answers were Sorted based on User's Feedback
Answer / siri
REDEFINES:-REUSE THE SPACE FROM FIRST BYTE ON WORDS....REDEFINES AND REDEFINING FIELDS MUST BE AT SAME LEVEL NOS..REDEFINING THE MEMORY MUST BE SAME OR SORTER...
FOR EXAMPLE 1000 BALLS IS THERE..EACH BALL CAST IS 10 RS/-...BUT I HAVE ONLY 10 RS/-...BUT I USE THE ALL 1000 BALLS HOW MEANS USING THE REDEFINES....
WORKING-STORAGE SECTION.
01 A PIC X(100) VALUES '******************************'
01 B REDEFINES A X(10)
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / yuddam
01 a pic 9(6).
01 b redifine a pic 9(6).
01 c redifine a pic 9(6).
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / suman
Redifine is a clause which reuses the existing storage space
1)redifine must be coded immediate after orginal dataname.
2)level no must be same as orginal data name.
3)level no should be 01-49.
4)data tpye length must be same.
ex:
01 a pic 9(6).
01 b redifine a pic 9(6).
01 c redifine b pic 9(6).
Is This Answer Correct ? | 4 Yes | 8 No |
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
What is the maximum length of a field you can define using COMP-3 in COBOL?
How do you get the data to code the BMS macro?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
When is inspect verb is used in cobol?
can we read in input the file with a variable length ? please , how ..could you help me ?
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
what is ASRA, AEY9?
88 class is used for
how will u code parm parameter and where pls ?