What is the maximum length of a field you can define using
COMP-3?
Answers were Sorted based on User's Feedback
Answer / smita padhy
The maximum length of a computational item is 18 decimal
digits, except
for a PACKED-DECIMAL item. If the ARITH(COMPAT) compiler
option is in
effect, then the maximum length of a PACKED-DECIMAL item is
18 decimal
digits. If the ARITH(EXTEND) compiler option is in effect,
then the
maximum length of a PACKED-DECIMAL item is 31 decimal
digits.
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / nihar ranjan karan
If you use the compiler option ARITH(EXTEND) then you can
have a maximum of 31 digits.
Look up the compiler option ARITH in manual... you will get
some more info also...
Is This Answer Correct ? | 9 Yes | 3 No |
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
How will you find the currepted records in a file
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.
For rewrite, why is it mandatory that file needs to be opened?
BY seeing a program how can we say that it is static call or dynamic call
copy 100 records without using ibm utilities
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
what are the error codes in cobol, db2, cics, vsam , and jcl
What does the IS NUMERIC clause establish ?
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