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

Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


01 b pic +9(4) How many bytes it will take for storage???

2 Answers  


How to concatenation one or more string?

4 Answers   Temenos,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error

4 Answers   TCS,


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

4 Answers   Infosys,


how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


COMP?

2 Answers  


What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?

1 Answers   Kuwait Oil Company,


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


what is meant by binary search?

4 Answers  


Categories