What are decleratives in COBOL ?
Answer / pavan
Declaratives provide special section that are executed when
an exceptional condition occurs. They must be grouped
together and coded at the beginning of procedure division
and the entire procedure division must be divided into
sections. The Declaratives start with a USE statement. The
entire group of declaratives is preceded by DECLARIVES and
followed by END DECLARITIVES in area A. The three types of
declaratives are Exception (when error occurs during file
handling), Debugging (to debug lines with 'D' coded in w-s
section) and Label (for EOF or beginning...) declaratives.
Is This Answer Correct ? | 14 Yes | 3 No |
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
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?
I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?
Why would you use find and get rather than to obtain?
If we use GO BACK instead of STOP RUN in cobol?
What is an in line PERFORM? When would you use it? Anything else to say about it?
in cobol perform stmt whether it first checks the condition or not
what is the default print format? in cobol
When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly