![]() Related Questions Comp is a binary usage, while comp-3 indicates packed decimal. The other common usages are binary and display. Display is the default. 3/28/00 Dave Herrmann: 'I was reading your FAQ on Cobol, as Latest Answer : Binary representation of data item are called 'comp', while comp-3 is the packed decimal.comp-1 & comp-2 are another usage. ... Latest Answer : For all of you out who have not heard about comp-4. Wake up. Comp-4 does exist and it is just like comp - ie. it is a half-word (2 bytes).This might help those of you who are confused about comp fields:COMP half word ... Latest Answer : comp usage are1 comp12 comp23 comp4 comp3but comp usage can reserve max. 8 bytes for internal representation of variable like
pic 9(1) to 9(4) reserve 2 bytes (half word) pic 9(5) to 9(9) reserve 4 bytes (full word) ... Latest Answer : For s9(3)v99 comp-3. system will take (5+1)/2 = 3bytes..For S9(1)v99 comp.Here system will take 2 bytes.
because we know that 1-4 range store 2bytes5-9 store 4 bytes10-18 store 8 bytes ... Read Answers (7) | Asked by : Bharath How to pass values from one jcl to another jcl, if how ? How to pass data from cobol to jcl? How to access jcl from cobol? How to display comp fields? Read Answers (3) | Asked by : mohan 1) Is more than one record description is allowed in a FD?2) Is NUMERIC EDIT fields can be used for Arithmatic operations?3) Is COMPUTE P,Q,W = A+ B/C -E ** 2 is a valid statement?4) Is LINKAGE SECTION is mandatory in a sub program?5) In edit fiels the character used for check protection is __________6) COMP-2 occupies _________ bytes?7) Maximum length of a numeric item ________ ? Latest Answer : We use comp field in cobol because when we want to store the data in binary form we use comp and the sign is placed in rightmost bit. c is used for +ve sign and d is used for -ve sign. ... what is comp-3 and advantage with examples? Latest Answer : COMP-3 is a computational method used in COBOL. COMP-3 is represented in Packed Decimail format. Decimails are alloed to this COMP-3 Field. Each digit occupies 1/2 bite of memory, so this declaration is useful and it conserves the memory.Ex: 01 A ... In real time in which situations we can use comp-3 and comp. What is the major difference between these two? Latest Answer : Whwn USAGE is specified as COMP,the numeric data item is represented in pure binary.The item must be an integer.no assumed decimal point is allowed.COMP item should not contain any characters other than 9,Ssize:half word,full word,binary word. e.g 02 ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||