Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Give some examples of command terminators?

1321


How arrays can be defined in COBOL?

1298


What is amode(24)?

1297


Difference between array and sub-script ?

1706


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2427


Define static linking and dynamic linking.

1270


what is search and searchall?what is the diffrence between them?give an best example?

6919


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3317


How you can characterize tables in cobol?

1252


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1263


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1272


How do define dynamic array in cobol.

1185


Explain the configuration section of a cobol program with examples of syntax.

1257


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1185


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2325