01 x pic s9(8) comp.
How will the following value be internally allocated
'18787'
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
What is comp-1 and comp-2?
in the TIME parameter we r giving hours r minutes
What is the difference between comp and comp-3?
What is an in-line perform ?
What is the difference between a subscript and an index in a table definition?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
i want to learn mainframes. i completed MCA ,whats the future of mainframes
Write a program that uses move corresponding.
How we copy a program from production region to development region.What is the process & syntax ?
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need