how can u pass the values into db2 values from cobol ?
Answer Posted / 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 |
Post New Answer View All Answers
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is inspect in cobol ?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is report-item in COBOL?
What are the different types of condition in cobol and write their forms.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How do you reference the fixed block file formats from cobol programs
What are different data types in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is Pic 9v99 Indicates in COBOL?
How do you get the data to code the BMS macro?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between comp and comp-3?
i want a program using by if, evaluate , string, unstring, perform, occurs?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?