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...


01 x pic s9(8) comp.
How will the following value be internally allocated
'18787'

Answers were Sorted based on User's Feedback



01 x pic s9(8) comp. How will the following value be internally allocated '18787' ..

Answer / kapil arya

Basically Comp Makes the word boundary.
(0 - 4) 2 Bytes (Half Word boundary)
(5-9) 4 Bytes (Full Word Boundary)
(10-18) 8 byte Double word Boundary

Because it is s9(8) Comp..
So I will take 4 byte to store the date.
And it will allocated like:
01 87 87 , will store in 3 byte and one byte will be free
or unused..



Guys or Girls i have one question...
Related to JCL
I have a jcl where in a step i have one DD statement where
i am concatinating the 3 dataset..so in next step i want to
override the 3rd dataset only.. So how can i override the
3rd dataset.. Please let me know the answer...
Thanks to All..

Is This Answer Correct ?    9 Yes 0 No

01 x pic s9(8) comp. How will the following value be internally allocated '18787' ..

Answer / santhosh vayathuri

Guys or Girls i have one question...
Related to JCL
I have a jcl where in a step i have one DD statement where
i am concatinating the 3 dataset..so in next step i want to
override the 3rd dataset only.. So how can i override the
3rd dataset.. Please let me know the answer...
Thanks to All..


FOR ABOVE QUESTION ANSER IS

//S1 EXEC PGM=PROG1
//DD1 DD DSN = X.Y.Z
// DD DSN = A.B.C
// DD DSN = M.N.O

//S2 EXEC PGM= PROG2
//S1.DD1 DD
// DD
// DD DSN =SAN.THO.SH


PLEASE LET ME KNOW IF I AM WRONG

Is This Answer Correct ?    4 Yes 0 No

01 x pic s9(8) comp. How will the following value be internally allocated '18787' ..

Answer / krishna chaitanya

the answer one is correct . he asked a question , how to
override 3 rd step .

we can do lik ths

step3.ddname which will override the DS .

if any wrong correct me .

Is This Answer Correct ?    0 Yes 1 No

01 x pic s9(8) comp. How will the following value be internally allocated '18787' ..

Answer / sheeba

hey acording to me...its 4 bytes.... if we convert the
above value to binary format dats how it stores rite
so...2power4(1
)+2p3(8)+2p2(7)+2p1(8)+2p0(7)=131....so 3 bytes...and 1
unused... totally 4 bytes......

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

How many variables can be declared in w-s section.?

2 Answers  


What rules are followed by the search verb.

0 Answers  


What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....

3 Answers   IBM,


If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


How do u know what version of cobol u are using?

3 Answers  


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


what are the steps to sort in a cobol program?

2 Answers   Patni,


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


What is SDSF?

3 Answers  


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

1 Answers  


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  


can any one help -s806

6 Answers  


Categories