Explain about level numbers?
Answers were Sorted based on User's Feedback
Answer / amit barwa
Level number -Is used to specify the the data hierarchy.
Level Number Purpose
01 Record description and independent items
02 to 49 Fields within records and sub items
66 RENAMES clause
77 Independent items
88 Condition names
| Is This Answer Correct ? | 45 Yes | 6 No |
Answer / sathiyan pari
01 level number is the top most in hierarchy. It will be
used to denote a single variable or a group of variables.
02 and 49 are sub records or sub items
66 the renames key word will be used in this level number
only.
77 level numbers are elementary data items.I cannot be sub
divided.
88 conditional variable.
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / natarajan
01 record desc
02 to 49 fields desc
66 rename
77 variable declaration
88 conditionname
| Is This Answer Correct ? | 9 Yes | 6 No |
1.What is the default print format in cobol?
In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?
How is sign stored in a comp-3 field?
where will u code file status ?
what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99
What is the Purpose of POINTER Phrase in STRING command
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.
How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How will you find the currepted records in a file
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?