comp-3 field occupy?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
it will occupy maximum s9(18) comp-3 i.e. 10 bytes
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ajith
for pic s9(n) comp-3,
it will occupy (n+1)/2 bytes
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ganesh
It will store INT ((n/2)+1) bytes for PIC S9(n) COMP_3;
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swamy
Comp-3 fields occupy (n+1)/2 spaces , 1 being the sign
eg: Pic S9(7) COMP-3. Byte size = (7+1)/2 = 4
Pic S9(5)V99 COMP-3. Byte size = (5+2+1)/2 = 4
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / krishna
COMP-3 is hexa-decimal reprasention .the best at lower
boundaries.
If it have size is even it takes (n/2) bytes.
If it have size is odd it takes (n+1/2) bytes.
| Is This Answer Correct ? | 0 Yes | 3 No |
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
what is amode(24), amode(31), rmode(24) and rmode(any)?
consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
what is linkcard in cobol?
why we are using set in searchall?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)
how to run sub programs using static and dynamic call ...
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...