Can a REDEFINES clause be used along with an OCCURS clause?
if yes,
01 WS-TABLE.
03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'.
03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you
expect?
if no,why?
Answer Posted / sunil
This works on MF-COBOL
Display WS-EX will display AAAAA
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Write a program to enter and display the names of students in a class using the occurs clause.
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.
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 is the difference between binary search and sequential search?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
In COBOL programming, what is PERFORM? What is VARYING?
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.
How do you define a variable of comp-1 and comp-2?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are declaratives and what are their uses in cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?