COMP?
Answers were Sorted based on User's Feedback
Answer / neeraj
comp,comp-4 both are same used for the binary
representation of the data fields.
Size of memory allocated will be based on
If 1-4 2 bytes
5-9 4 bytes
10-18 8 bytes
Pic clause is attached with COMP data types
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vampire
comp had boundaries
1-4 halfword-2bytes-16bites-4nibbles
5-9 fullword-4bytes-32bites-8nibbles
10-18 doubleword-8bytes-64bites-16nibbles
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
Minimum how many Number of Paragraphs are there in ID- Divison?
what is the use of keep and pass in disp
What are the ways you can generate a copybook?
how to transfer the file from pc to mainframe??
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
What is 66 level number and where it is used in real time by software developers?
2 Answers ITC Indian Tobacco Company, TCS,
can we use reference modification an arry.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
what will happen if pass values more than 100 using PARM parameter?