Can the OCCURS clause be at the 01 level?
Answers were Sorted based on User's Feedback
Answer / rajini
Can the OCCURS clause be at the 01 level?
NO, because occurs clause is there to repeat the fields and
not the records.
| Is This Answer Correct ? | 10 Yes | 1 No |
What divisions, sections and paragraphs are mandatory for a COBOL program?
Can we use redefine clause in occurs clause?
how to know that the file has 300 records how to acess it?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
What is the difference between a subscript and an index in a table definition?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
i have variable record in the 5th, i want to sort from 5th filed ? how ?
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
What COBOL construct is the COBOL II EVALUATE meant to replace?