i need the code for this program in cobol.
2 + 1 = 3
4+3=7
6+5=11
8+7=15
10+9=19
Answers were Sorted based on User's Feedback
Answer / aj
do a loop on below equation . Varying n from 1 to required
value
(2n) + (2n-1)
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / xxx
PERFORM VARYING X FROM 1 BY 1 UNTIL WS-ANS = 19
COMPUTE WS-ANS = (2 * X) + ((2 * X) - 1)
DISPLAY WS-ANS
END-PERFORM
| Is This Answer Correct ? | 1 Yes | 0 No |
How to concatenation one or more string?
If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?
What is the use of LINKAGE SECTION?
What is SSRANGE, NOSSRANGE ?
what is subscript in cobol?give realtime example?
What are the pertinent COBOL commands?
What are decleratives in COBOL ?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
What is the difference between NEXT SENTENCE and CONTINUE?
What is the difference between Global and External Variables?
Whtz the specialty of 77 level number ?
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?