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

what is search and searchall?what is the diffrence between them?give an best example?

5559


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


How to know whether the module is dynamical or statistical?

656


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

932






What do you understand by psb and acb?

665


Why occurs cannot be used in 01 level in COBOL?

719


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

915


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

710


What are the different rules for performing sort operation?

763


A table has two indexes defined. Which one will be used by the SEARCH?

759


What is the difference between Call and a Link?

700


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?

897


Explain how you can characterize tables in cobol?

638


What are different data types in cobol?

689