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

can we use COPY statement in w-s section? how?

3 Answers  


what is jcl approach for programming?

4 Answers   IBM,


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps

5 Answers   iNautix,


With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?

4 Answers   IBM,


where will u code file status ?

2 Answers   TCS,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


Categories