What does EXIT do ?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
Does nothing ! If used, must be the only sentence within a
paragraph
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / mdvasanth86
What Mahathiaz said it true.
However, I would like add that it can be combined with other
statements in the Paragraph with the recent version of cobol.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vampire
It is a scope terminator for Paragraph
ex
00001-main-para
000003-perform disp-para.
stop run.
000003-perform disp-para.
display"kiran".
exit
| Is This Answer Correct ? | 0 Yes | 2 No |
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.
whats the disadvantage of search all over search?
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
What does EXIT do ?
I have a occurs for 100 times but it has executed 101 time what could be the reason?
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.