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

Answers were Sorted based on User's Feedback



Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 1..

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

Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 1..

Answer / chaitu215

Memory related

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More COBOL Interview Questions

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

1 Answers   HCL,


how to transfer the file from pc to mainframe??

4 Answers  


What are the ways you can generate a copybook?

2 Answers  


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

0 Answers   Valtech,


how do you reference the esds vsam file formats from cobol programs

0 Answers  


i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


) How do u handle errors in BMS macro?

0 Answers   IBM,


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


Explain about Redefines cluse?

3 Answers   iGate,


What is the use of EVALUATE statement?

4 Answers   Tesco,


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.

1 Answers   CTS,


Categories