How do you submit JCL via a Cobol program?

Answer Posted / puneet pandhi

It is possible to submit a job from a DB2 Stored Procedure.
In the WLM start up procedure, ask your DBA to add this

//JCLJOB DD SYSOUT=(,INTRDR)

Create one file JCLFIL and populate the JCL that you want
to submit into this file. When you close this file, the job
should get submitted.

then as you close the file the job will be submitted and in
SP add SELECT JCLFIL ASSIGN TO JCLJOB

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about different table spaces.

644


What do you understand by psb and acb?

661


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1840


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8156


How many bytes S(8) comp field occupy and its maximum value?

1628






What is the LINKAGE SECTION used in COBOL?

885


Whats the difference between search & search ALL?

5260


Which division and paragraphs are mandatory for a COBOL program?

707


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

745


State the various causes of s0c1, s0c5 and s0c7.

658


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2005


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

704


what is the difference between COBOL2 AND COBOL390?

2451


What is the utilization of copybook in cobol?

650


What is report-item in COBOL?

704