Parm value passed is PARM=(10,20). how do code linkage
section and how would you add these two passes values and
show result in cobol program.
Answers were Sorted based on User's Feedback
LINKEAGE SECTION
01 WS-LINKEAGE SECTION.
05 WS-LINK-LENGTH PIC X(2).
05 WS-A PIC 9(2).
05 FILLER PIC X.
05 WS-B PIC 9(2).
PROCEDURE DIVISION USING WS-LINKEAGE-SECTION.
COMPUTE WS-B = WS-A + WS+B
DISAPLAY WS-B.
STOP-RUN.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / raghvendra
LINKEAGE SECTION
01 WS-LINKEAGE SECTION.
05 WS-LINK-LENGTH PIC s9(4)comp.
05 WS-A PIC 9(2).
05 FILLER PIC X.
05 WS-B PIC 9(2).
PROCEDURE DIVISION USING WS-LINKEAGE-SECTION.
COMPUTE WS-B = WS-A + WS+B
DISAPLAY WS-B.
STOP-RUN.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sreenivaas
procedure division using a b.
add a to b.
display b.
| Is This Answer Correct ? | 0 Yes | 6 No |
What is a cursor and what is its function?
What are bind parameters in db2?
What is the syntax for seeing the columns and data types of a table in the db2 database?
What is page size in db2?
What is the maximum number of tables that can be stored on a Partitioned Table Space ?
What is null in db2?
How do I connect my db2 database to ibm?
how to check the table is empty or not?
What is db2 stogroup?
What is the role of data manager in the db2 database?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What does it mean if the null indicator has -1, 0, -2?