how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
Answers were Sorted based on User's Feedback
Answer / rana
COMP1 and COMP2 are the Single precision (Full word - 4
bytes) and Double precision (Double word - 8 bytes)
respectively.
They don't contain the Picture Clause.
COMP-3 will contain 8 Bytes.
Is This Answer Correct ? | 30 Yes | 4 No |
Answer / shiva
COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / srinivasa yadav
COMP1 : IT TAKES 4 BYTES OF MEMORY.
COMP2 : IT TAKES 8 BYTES OF MEMORY.
COMP3 : IT TAKES 8 BYTES OF MEMORY.
Is This Answer Correct ? | 18 Yes | 2 No |
what is rediffine clause?in what situation it can use?give me real time example?
Explain fixed length record in cobol? with suitable example
How do define dynamic array in cobol.
How will you find the currepted records in a file
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe
6 Answers Citi Bank, CitiGroup, HSBC, iNautix, Wipro,
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?
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
What is the difference between a binary search and a sequential search?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
What is the difference between copy and include in cobol?