How is sign stored in a comp-3 field?
Answers were Sorted based on User's Feedback
Answer / prashanth
sign will stored as hexadecimal in the last nibble of the
storage
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / nitin
It is stored in the last nibble. For example if your number
is +100, it stores hex 0C in the last byte, hex 1C if your
number is 101, hex 2C if your number is 102, hex 1D if the
number is -101, hex 2D if the number is -102 etc...
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sai
it is stored in packed decimal formate.and in the form of
hex decimal .
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / meera
When usage is Comp3 the sign is indicated as the rightmost
nibble even S is specified or not. It is in packed decimal
format. Total size is N/2+1
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / hitz
Surya's right most half a byte is correct or Sekhar's left
most half-a-byte? please help to correct this.....
| Is This Answer Correct ? | 0 Yes | 0 No |
If the usage class is specified with the comp-3, the numeric
data item stored in packed decimal form, each item will
represent with one byte , the sign will stored in left most
half-a-byte whether the S is specified or not in the picture
cluase.
if any thing wrong let me know....
| Is This Answer Correct ? | 2 Yes | 5 No |
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
how to display comp3 variables reply soon ?
Which division and paragraphs are mandatory for a COBOL program?
Describe the difference between subscripting and indexing ?
What are the ways you can generate a copybook?
Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?
How to increase the logical record length of existing PS file?
in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
what are the diferences b/w sub-script and index?
how do you reference the fixed unblock file formats from cobol programs
here is my compile and link edit steps in a jcl //COMPILE1 JOB (3CUS,S),'CCDM TEST' //STEPNAME EXEC PGM=IGYCRCTL,PARM='DYNAM,RENT,LIB,OBJECT, // OFFSET,APOST,OPTIMIZE',REGION=4096K //STEPLIB DD DSNAME=PM7351.TEST2.COB,DISP=SHR //SYSIN DD DSNAME=PM7351.TEST2.COB(PGM1),DISP=SHR //SYSUT1 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT2 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT3 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT4 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT5 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT6 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT7 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSPRINT DD SYSOUT=* //SYSLIN DD DSNAME=&&LOAD,DISP=(MOD,PASS),UNIT=SYSDA, // SPACE=(10,(10,10)),DCB=BLKSIZE=400 //LKED EXEC PGM=IEWL,REGION=1024K //SYSPRINT DD SYSOUT=A //SYSLIB DD DSN=PM7351.TEST2.LOADLIB,DISP=SHR // DD DSN=PM7351.TEST2.COB(PGM1),DISP=SHR //SYSLMOD DD DSN=PM7351.TEST2.LOADLIB, // DISP=SHR //SYSUT1 DD UNIT=SYSDA,DCB=BLKSIZE=1024,SPACE=(CYL,(1,1)) //SYSTERM DD SYSOUT=* //SYSLIN DD DSN=&&LOAD,DISP=(OLD,DELETE) //SYSIN DD DUMMY i am getting IEW2013I 0F08 NO MEMBER NAME WAS SPECIFIED. MODULE WAS SAVED USING TEMPNAM1. could any one tell me the resolution for this..?