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 |
Why we are using comp and comp-3 in real time projects?
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself
What is the difference between external and global variables in COBOL?
i want to store 20 digits . h will u do it in cobol ?
How do you reference the fixed block file formats from cobol programs
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?
What is the difference between COMP & COMP-3 ?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are differences between Static Call and Dynamic Call?
10 Answers IBM, KBC, Keane India Ltd, Verizon,
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
what are the limitations of Inline Perform?