What is the size of s9(19)comp3? explain
Answers were Sorted based on User's Feedback
Answer / sreekanth
the size of s9(19)comp3 is 10.because in comp3 whenever the
size is odd then we can use the following formula.i.e
n+1/2.so 19+1/2 is 10 then the size of s9(19)comp3 is 10.
Is This Answer Correct ? | 20 Yes | 6 No |
Answer / ajeet
I think the maximum numeric size allowed for numeric
is s9(18)comp-3.
correct me ?
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / sekhar
numeric size only 9(18).
alphanumeric is x(3273).
alphabit is A(3273)
so answer is we cant declare s9(19)
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / vkw
If i have s9(20)comp3.the ans is 21/3=10.5 that means its
round off to 11.why it is rounded off and how it will
happen annd on what basis.
Is This Answer Correct ? | 4 Yes | 5 No |
01 A pic 9(100) find record length of it
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
where did you see the information regarding abend codes in jcl?
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.
how we separate the cobol cics statements from cobol&cics programming?
1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?
study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid
Why we should use cursor ?
COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
can we use variable picture clause as xx.99 in cobol.
What does MAXCC 3 means? It is used in one my codes.
what is the advantage of using redefines instead of delaring the variables ?