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

What are the pertinent COBOL commands?

2626


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1808


how do you reference the ksds vsam file formats from cobol programs

666


How arrays can be defined in COBOL?

665


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2100






2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2121


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

759


What is the difference between comp and comp-3 usage?

681


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2724


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

5563


What are literals?

632


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17048


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1657


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

424