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



Parm value passed is PARM=(10,20). how do code linkage section and how would you add these two pas..

Answer / vaneesh khurana

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

Parm value passed is PARM=(10,20). how do code linkage section and how would you add these two pas..

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

Parm value passed is PARM=(10,20). how do code linkage section and how would you add these two pas..

Answer / sreenivaas

procedure division using a b.
add a to b.
display b.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More DB2 Interview Questions

Why do we need to create an alias if we can directly use the table name? What are the benefits of referring a table name by its alias? Also, when should we go for alias and when for synonyms?

1 Answers  


I have 1000 rows in a db2 table.I want to update first 100 records,How do I do it?

4 Answers   CTS,


What is with ur in db2?

0 Answers  


What is a result table?

1 Answers  


Q3. How will you fetch duplicate values from a DB2 table?

2 Answers   RBS,






my project is insurance management system,how to explain my work environment in interview?

2 Answers   CGI, Value Labs,


how can we find nth max salary from A table

5 Answers   IBM,


wht are the restrictions for union ?

2 Answers   CTS,


What is check constraint. Explain with example.

0 Answers  


Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


How would the varchar column remarks defined?

0 Answers  


What is a synonym ?

2 Answers  


Categories