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 |
What is report-item?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
What are the rules of the move verb?
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 57397 is moved to pic $$,$$9.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?
what is label record is standard or omitted in file description of data division?
What is perform what is varying?
What are the different data types available in COBOL?