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 |
. How do we cast a variable in COBOL
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
If you were passing a table via linkage, which is preferable - a subscript or an index?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
what is the default print format? in cobol
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
Explain how you can characterize tables in cobol?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.