how to submit a jcl by cobol program.
clear me with an example.

Answer Posted / suresh ramaiyan

Let us the program is PGM1. Below is the JCL for running
the PGM1.

//STEP1 EXEC PGM=PGM1
//INSUB DD SYSOUT (* INTRDR)

In the program define INSUB as file (should have a LRECL of
80). Write all the JCL codings into INSUB file.

When you close the INSUB file, the job will be submitted to
JES automatically.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) how do u code after getting data?

1768


Which division and paragraphs are mandatory for a COBOL program?

902


What is static and dynamic call in cobol?

771


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

891


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2093






i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1198


how do you reference the fixed unblock file formats from cobol programs

911


what happens if parmparameter passes zero bytes to the program

1856


What are the different rules of SORT operation?

884


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

1026


What is the difference between binary search and sequential search?

840


What is a scope terminator give example?

819


Can a Search can be done on a table with or without Index?

1034


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

8651


explain sorting techniques in cobol program?

874