01 ws-p pic 9(2).
01 ws-q pic 9(2) value 01.
01 ws-r pic 9(2) value 99.
p.d.
compute p = q + r
what will be result of p ans(00) but my question is that
how i got 10 on the place of 00.
(truncation will ocuure on right side not left).
please tell me ?
Answer Posted / nataraj
q value is 01
r value is 99
after compute p value is 100
normally value is printed left to right so u get 10
place of p
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
i want a program using by if, evaluate , string, unstring, perform, occurs?
How many sections are there in data division in COBOL?
how to move the records from file to array table. give with code example
Which Search verb is equivalent to PERFORM…VARYING?
Differentiate between structured cobol programming and object-oriented cobol programming.
what is the use of outrecord?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
what is difference between cobol and cobol/400
Write some characteristics of cobol as means of business language.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Explain the configuration section of a cobol program with examples of syntax.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How arrays can be defined in COBOL?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks