I have one column say 'X' defined as VARCHAR
Can anyone tell me What are the different ways to update
this column thru COBOL-DB2 program?

Answer Posted / shree

Use update query in the COBOL program inside the DB2 code
block
EXEC SQL
UPDATE <TABLE NAME> SET <COLUMN NAME> = 'X'
WHERE CLAUSE
END-EXEC

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you get the data to code the BMS macro?

1451


What is the difference between next sentence and continue in cobol programing language?

682


What are the access modes of START statement?

690


What is the difference between a binary search and a sequential search what are the pertinent cobol?

702


What is the difference between binary search and sequential search?

608






What is link edit in cobol?

699


how do you define single dimensional array and multidimensional array in your cobol?

648


Can you please let me know the centre name of INS certification in Kolkata.

1692


What is the difference between structured cobol programming and object alternativelyiented cobol?

720


What are the different rules to perform a Search?

595


Can a Search can be done on a table with or without Index?

772


In COBOL, what is the different between index and subscript?

732


Difference between array and sub-script ?

1133


What are 77 levels used for?

632


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5019