How will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp
Answer Posted / sriram
for comp-3 will store data in packed decimal format
s9(3)comp-3
0.5+1.5=2 bytes,
for 128 it will store c128 or f128.
for comp will store data in binary format
s9(2) will occupy 2 bytes
for 12 it will store binary format i.e 12=1100
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is the difference between comp and comp-3 usage?
In COBOL programming, what is PERFORM? What is VARYING?
what is the difference between COBOL2 AND COBOL390?
Whats the difference between search & search ALL?
What is the compute verb? How is it used?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to know whether the module is dynamical or statistical?
Write the code to count the sum of n natural numbers.
HOw can I get the negative sign while deduct high value from low value
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between structured cobol programming and object alternativelyiented cobol?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
A table has two indexes defined. Which one will be used by the SEARCH?