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 |
I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.
What type of Call you would use if you don;t want the control back to the calling program?
when COMP-3 is preferrable?
WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?
When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these
State the various causes of s0c1, s0c5 and s0c7.
What are the various section in data division and briefly explain them.
what is the purpose of linkage section?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
What is the LINKAGE SECTION used for?
What is the size of s9(19)comp3? explain