01 x pic s9(8) comp.
How will the following value be internally allocated
'18787'
Answer Posted / 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 |
Post New Answer View All Answers
how do you reference the variable block file formats from cobol programs
What rules are to be followed while using the corresponding options?
What is difference between static and dynamic call in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How do u write test cases?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Which division and paragraphs are mandatory for a COBOL program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is a report item?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is a SSRANGE and NOSSRANGE?
What is the difference between comp and comp-3?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Explain the configuration section of a cobol program with examples of syntax.