What is difference between comp & comp-4?

Answers were Sorted based on User's Feedback



What is difference between comp & comp-4? ..

Answer / satishk

Hi friends,
The above answers are all wrong.
here is the right link for that to know.
try to make use of ibm-mannuals as much as possible, dont
go for all raw-materials, this is my strict warning to all
mainframes learners.
http://ibmmainframes.com/size.html

Is This Answer Correct ?    9 Yes 1 No

What is difference between comp & comp-4? ..

Answer / sachin

COMP-4 and comp is similar to Binary
COMP-5 is for display usage type.. termed as native binary

Is This Answer Correct ?    6 Yes 0 No

What is difference between comp & comp-4? ..

Answer / thoms

comp
comp4
comp5
all of above stated usage clauses are used by cobol prog's
to store numeric values in a binary data formate inorder to
efficiently use memory.

Is This Answer Correct ?    2 Yes 0 No

What is difference between comp & comp-4? ..

Answer / anil prajapati

comp and comp-4 are synonyms

Is This Answer Correct ?    3 Yes 8 No

What is difference between comp & comp-4? ..

Answer / pal

Comp is computational clause
nothing but using the memory in a efficient way
i think there is no comp-4

Is This Answer Correct ?    3 Yes 19 No

What is difference between comp & comp-4? ..

Answer / satya sivaji

Computational clauses allows cobol programe to efficiently
represent the data internally.There are 5 forms of
representing data which are
1).Display(default)
2).Comp
3).Comp-1
4).Comp-2
5).Comp-3.
And there is no Comp-4.

Is This Answer Correct ?    2 Yes 27 No

Post New Answer

More COBOL Interview Questions

Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1 Answers  


I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  


I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.

10 Answers   Mascon,


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,


What is amode(31)

1 Answers  


01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?

5 Answers   Amdocs,


The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290

4 Answers   TCS,


Categories