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 access the file from prodution from changeman tool and to submit a file to production
Name the divisions, which are available in a cobol program?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How many sections are there in data division in COBOL?
What are the pertinent COBOL commands?
what is difference between cobol and cobol/400
What is Pic 9v99 Indicates in COBOL?
explain sorting techniques in cobol program?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is the utilization of copybook in cobol?