why occurs clause not mentioned in 01 level
Answer Posted / som
BECAUSE IF WE DEFINE THE OCCURS CLAUSE AT 01 LEVEL THEN IT
BREAK THE BASIC RULE OF LANGUAGE DECLARTION OF SAME NAME
VARIABLE MORE THEN ONE TIME.E.G
01 NAME PIC XX OCCURS 2 TIMES. MEANS ACTUAL DECLARTION WILL
LIKE THIS
01 NAME PIC XX.
01 NAME PIC XX.
THATS WHY IT IS NOT USED AT 01 LEVEL
| Is This Answer Correct ? | 6 Yes | 9 No |
Post New Answer View All Answers
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 ......
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the problem of ordered sequential files access?
what is the use of outrecord?
How you can characterize tables in cobol?
How do you differentiate between cobol and cobol-ii?
What are the different rules for performing sort operation?
What are different data types in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What are the rules of the move verb?
What are literals?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?