what is a zoned decimal data type and how it will be stored?
Answers were Sorted based on User's Feedback
Answer / app
Zoned decimal is the numeric format used for display usage.
For an unsigned field the digits in the field are
represented by EBCDIC code (F0 thru F9).In a signed number
the zoned bit in the right mosted byte of the field are
either hex C for postive or hex D for negative.
eg:F0 F0 F1 F2 F3 unsigned 234
F0 F0 F1 F2 C3 signed +234
F0 F0 F1 F2 D3 signed -234
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / krishnan a
zoned decimal data type pix 9(2).
ex:
01 var1.
02 a pic 9(2).
here 9 is a zoned decimal data type.
it is a numeric field.
| Is This Answer Correct ? | 1 Yes | 1 No |
Whtz the specialty of 77 level number ?
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
What kind of error is trapped by on size error option?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are different data types in cobol?
HOw can I get the negative sign while deduct high value from low value
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)
Syntax for JCLLIB & JOBLIB???
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error
what is search and searchall?what is the diffrence between them?give an best example?
When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these