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
Answer Posted / 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 |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
Which is not true about evaluate statement
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is link edit in cobol?
IF I mention stop run in CICS what happens?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Discuss about changing dataset name in proc.
What is the utilization of copybook in cobol?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Write some characteristics of cobol as means of business language.
What is length is cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Write the code implementing the perform … varying.
What are the pertinent COBOL commands?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.