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 |
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?
I have 1000 rows in a db2 table.I want to update first 100 records,How do I do it?
What is with ur in db2?
What is a result table?
Q3. How will you fetch duplicate values from a DB2 table?
my project is insurance management system,how to explain my work environment in interview?
how can we find nth max salary from A table
wht are the restrictions for union ?
What is check constraint. Explain with example.
Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?
How would the varchar column remarks defined?
What is a synonym ?