Why we are using comp and comp-3 in real time projects?
Answers were Sorted based on User's Feedback
Answer / harsha
Mostly COMP is used for counter fields or for Subscripts.
COMP-3 is mostly used in all sort of arithmatic
calculations.
| Is This Answer Correct ? | 9 Yes | 1 No |
what is the difference between COBOL2 AND COBOL390?
Can we use icetool in cobol program?
what is the difference between perform varying and perform until
What is the difference between SEARCH and SEARCH ALL?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
What is mean by maxcc
How do pass the values to the parameters in cobol
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???
can anyone explain me the concept of COMP-4 PLEASE??
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.