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 |
how can u redefine picx(10) with pic 9(6).
i need a small 3d program using inline and outline.
SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.
Write the syntax of a two dimensional array?
record length in spool?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is SQL Code -904 and -903 in DB2 And how to handle it?
01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
What R 2 of the common forms of the EVALUATE STATEMENT ?
how do you reference the rrds file formats from cobol programs
How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".