db2 variable decimal(15,2) what is the equalent size of
cobol variable
Answers were Sorted based on User's Feedback
Answer / quasar chunawala
The correct COBOL Field that can hold the Value of DECIMAL
(15,2) SQL Field should be declared as
05 WS-COBOL-DECIMAL-FIELD PIC S9(13)V9(02) COMP-3.
| Is This Answer Correct ? | 29 Yes | 3 No |
how would you resolve sb37 and SE37?
What is a scope terminator? Give examples.
Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Describe the difference between subscripting and indexing ?
input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
COMP-3 field occupy ?
Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?