how can u pass the values into db2 values from cobol ?

Answers were Sorted based on User's Feedback



how can u pass the values into db2 values from cobol ?..

Answer / bhaskar

using host variables

Is This Answer Correct ?    18 Yes 0 No

how can u pass the values into db2 values from cobol ?..

Answer / uday

In your Execution jcl

//JOB1 JOB NOTIFY=&SYSUID
//STEP1 EXEC PGM=IKJEFT01
//STEPLIB DD DSN=PSHRPD.PROD.LOADLIB,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DB2X)
RUN PROGRAM(PXXXXXXX) PLAN(DB2XXXXX) PARM('1234')
END
/*

In your Program = PXXXXXXX

Linkage section.

01 LK-PARM.
05 LK-LEN PIC S9(04) COMP.
05 LK-DATA PIC X(04).

PROCEDURE DIVISION USING LK-PARM.

So through Parm data also you can pass the data.

Is This Answer Correct ?    3 Yes 1 No

how can u pass the values into db2 values from cobol ?..

Answer / raghunathareddy

loadmodule

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More COBOL Interview Questions

01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


What is EIBCALEN? Why it is used?

9 Answers   ADP,


What are literals?

0 Answers  


) What is the use of IGNORE?

1 Answers   IBM,






What is the problem of ordered sequential files access?

0 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

7 Answers   T systems,


give the examples of strings in cobol

1 Answers   IBM,


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,


What are the pertinent COBOL commands?

0 Answers   Satyam,


can we use go to statement inline-perform?

7 Answers   IBM,


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


Categories