How do define Dymanic array in cobol how do u define single
demensional arry and multidymensional arry in ur cobol.
Answer Posted / mahesh
single dimensional array-
01 year grp.
05 month pic 9(2) occurs 12times.
multi dimensional array
01 year grp.
05 month occurs 12times.
05 weak occurs 4 times.
05 days pic x(4) occurs 7 times.
dynamic array-
01 yy grp.
05 month pic x(4) occurs 10-12 times depending upon 'yygrp'.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between static and dynamic call in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
) what is the difference between AID and HANDLE AID?
Why occurs cannot be used in 01 level in COBOL?
What are various search techniques in cobol? Explain.
How many bytes S(8) comp field occupy and its maximum value?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the local-storage section?
A table has two indexes defined. Which one will be used by the SEARCH?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the difference between PIC 9.99 and 9v99 in COBOL?
how do you reference the ksds vsam file formats from cobol programs
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are the different rules to perform a Search?