Passing a variable parm from JCL to a cobol/db2 program
Answer Posted / tejaratbours
hi.
i need help
i need Passing a variable parm from JCL to a cobol/db2
program
I'm trying to write a batch cobol/db2 pgm wich receive in
linkage section some paremeters
I succeeded to pass a static string of characters but what
I need is variable parameters (INPUT )
//DDB5A59 JOB CLASS=A,MSGCLASS=R,MSGLEVEL=(1,1),NOTIFY=xxxx
// REGION=0M
// SET INPUT=MYNAME <=====
//PH01S01 EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=(4,LT)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DBSN)
RUN PROGRAM(COBPROG) PLAN(NACPLN) -
PARMS('INPUT') -
LIB('MYDB.TRNSCTN.LOADLIB')
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//INFILE DD DSN=MYDB(&INPUT),DISP=SHR
//ERRLST DD SYSOUT=P,DCB=RECFM=F,FCB=L56
The program (cobprog) is that when I run the job ,if PARMS
('&INPUT') returns :&INPUT and
if PARMS(&INPUT) returns :null
i need "myname" to the cobol/db2 program and name of the
member (DSN=MYDB(&INPUT),DISP=SHR)
Do you think helpe me?
Thanks
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Is it possible to left uncode disp?
Matching Logic in Jcl not in cobol.Could any one please answer this question
I need exexution process for JCL programs
What statement can be used to send data to another mvs jes3 node?
how to run batch program without jcl?
Is it possible to left uncode disp? If yes, how?
What is the maximum length of a single line of jcl?
what is the use of JCL?
What are the parameters that are used in creating a gdg?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Describe the various parameters utilized in the creation of a gdg?
Is condition checking possible in jcl? If yes, how?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
how JCL works?