can we declare s9(9)v9(9) in cobol ? if yes how many bytes
it will occupy ?(urgent plz answer it)
Answers were Sorted based on User's Feedback
Answer / ramlal
before decimal point value stored in 9byted decimal point
does not occupy any space after decimal point total value
occupies only 1byte totally 9+0+1=10bytes.
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / vikash
we can declare.It will take total bytes based on formula=(n/2+1).
Thus, 9+9=18
Here n=18,
Thus number of bytes=18/2+1=10 bytes
| Is This Answer Correct ? | 1 Yes | 3 No |
plz any one tell clearly the justify right clause?
wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..
Differentiate COBOL and COBOL-II?
In an EVALUATE statement, can I give a complex condition on a when clause?
In an array processing what is the thing that can be done by using subscripts but not by using index
Name the divisions in a COBOL program ?
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
what is subscript in cobol?give realtime example?
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
How to execute a set of JCL statements from a COBOL program?
COMP?
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.