Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ?
Thanks
krishna chaitanya
Answers were Sorted based on User's Feedback
Answer / abi
ID DIVISION.
PROGRAM-ID. PA.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
*01 B PIC X(20) VALUE ALL '1'.
01 A PIC S9(18)V99 COMP-3.
PROCEDURE DIVISION.
MAIN-PARA.
MOVE 1111111111111111111 TO A.
DISPLAY A.
STOP RUN.
********************** Bottom of Dat
when we are executed this program we got it following
discription.
*More than 18 digit positions were specified in
a "PICTUURE" string for a numeric or numeric edited item.
A "PICTURE" string of "S9(18)" was assumed
.
* Numeric literal "1111111111111111111" was longer than
than the maximum allowed length. The literal was truncated
to "111111111111111111".
| Is This Answer Correct ? | 6 Yes | 4 No |
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
what is difference between cobol and cobol/400
how to transfer the file from pc to mainframe??
What are the ways you can generate a copybook?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how do you reference the esds vsam file formats from cobol programs
i WANT ALL ERROR codes IN CICS and DB2
) How do u handle errors in BMS macro?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
Explain about Redefines cluse?
What is the use of EVALUATE statement?
When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.