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
What are the pertinent COBOL commands?
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?
how do you reference the ksds vsam file formats from cobol programs
How arrays can be defined in COBOL?
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?
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
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between comp and comp-3 usage?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
what is search and searchall?what is the diffrence between them?give an best example?
What are literals?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?